Упражнение 3. Matlab

From Ilianko
Revision as of 11:26, 15 April 2011 by Anko (talk | contribs)

Управляващи оператори

if

if <expression>
  statment
end

if <expression>
 statement;
else
 statement;
end

if <expression>
 statement;
elseif
 statement;
else
 statement;
end

Релации и логически оператори

< , <= , >, >= , ~=, ==

&, &&, |, ||, ~

switch

switch expression
 case val1
   statement
 case {val2, val3
   statement
 otherwise
   statement
end