MATLAB Function Reference
  Go to function:
    Search    Help Desk 
else    See Also

Conditionally execute statements

Syntax

Description

The else command is used to delineate an alternate block of statements.

The second set of statements is executed if the expression has any zero elements. The expression is usually the result of

where rop is ==, <, >, <=, >=, or ~=.

See Also

break, elseif, end, for, if, return, switch, while



[ Previous | Help Desk | Next ]