| MATLAB Function Reference | ![]() |
switch指令的預設部分(Default part of switch statement)
Description
otherwise
為 switch 語法中的一部分,可用做條件執行( conditional execution)。只有在先前的case敘述(case
expressions)(case_expr) 都不符合switch表達(switch expression)的時候, otherwise
以下的指令才會執行。
Examples
switch sw_expr
case case_expr
statement
statement
case {case_expr1,case_expr2,case_expr3}
statement
statement
otherwise
statement
statement
end
See Also
| orth | pack | ![]() |