FUNCTION REFERENCE
otherwise
Give the default branch of a switch block.
Give the default branch of a switch block.
Syntax
otherwiseRuns its statements when no case of the enclosing switch matched. Must come after every case. Only valid inside switch.
Example
switch 5; case 1; disp('one'); otherwise; disp('not one'); end % not oneDifferences from MATLAB: none known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.