MATLAB Function Reference |
條件執行指令(Conditionally execute statements)
Syntax
ifexpression
statements
elsestatements
end
Description
else
command is used to delineate an alternate block of statements.
ifexpression
statements
elsestatements
end
若 expression
的結果是0,將會執行第二個的 statements
。 expression通常為下列敘述所產生的結果:
expression rop
expression
rop
為 ==
, <
, >
, <=
, >=
, or ~=
.
See Also
break
, elseif
, end
, for
, if
, return
, switch
, while
ellipke | elseif |