| MATLAB Function Reference | ![]() |
詳細
otherwise
は switch ステートメントシンタックスの一部分で、条件付きの実行のためのものです。otherwise に続くステートメントは、その前の case の式( case_expr )のいずれも switch の式( sw_expr )と適合しない場合にのみ実行されます。
例題
switch sw_expr
case case_expr
statement
statement
case {case_expr1,case_expr2,case_expr3}
statement
statement
otherwise
statement
statement
end
参考
| orth | pack | ![]() |