Conditional structures: Difference between revisions

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