mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Update matlab.html.markdown
This commit is contained in:
parent
a8911cb7a5
commit
19f3a857fb
@ -374,8 +374,8 @@ disp('Hello World') % Print out a string
|
||||
fprintf % Print to Command Window with more control
|
||||
|
||||
% Conditional statements (the parentheses are optional, but good style)
|
||||
if (a > 15)
|
||||
disp('Greater than 15')
|
||||
if (a > 23)
|
||||
disp('Greater than 23')
|
||||
elseif (a == 23)
|
||||
disp('a is 23')
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user