MATLAB Function Reference Previous page   Next Page
otherwise

Default part of switch statement

Description

otherwise is part of the switch statement syntax, which allows for conditional execution. The statements following otherwise are executed only if none of the preceding case expressions (case_expr) matches the switch expression (sw_expr).

Examples

The general form of the switch statement is

See switch for more details.

See Also

switch, case, end, if, else, elseif, while


Previous page  orth pack Next page

© 1994-2005 The MathWorks, Inc.