As of MATLAB 5.3 (R11), the logical & operator does not evaluate the second argument if the first is false; ie the operation is short circuited. The arguments are also evaluated in the order they are given. This is also the case for the logical | (OR) operator.
Please note however, that this is only true in IF and WHILE statements. For example, in the following code:
launch will be called. But if you do the following instead:
launch will not be evaluated.
Best Answer