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