The indicated statement always returns false or results in an error. This is
because the statements A && B
and A ||
B
always either return a logical value or throw an error.
Rewrite the code to perform the logical operation outside of the indicated function.
For example, to determine whether both a
and
b
are empty:
a = 1;
b = 2;
isnan(a) && isnan(b)
To determine whether a
is empty, and then determine the
logical AND of the result and b
:
a = 1;
b = 2;
isnan(a) && b