Jump to content

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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.