Anonymous user
Conditional structures: Difference between revisions
m
→{{header|MATLAB}}: ===
m (Category:Simple, {{out}}) |
m (→{{header|MATLAB}}: ===) |
||
Line 2,121:
=={{header|MATLAB}}==
===If statements
Example:
<lang MATLAB>if x == 1
Line 2,130:
disp 'x<1';
end</lang>
===Switch statements
Example:
<lang MATLAB>switch x
|