Explanation

The indicated statement always returns true 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.


Suggested Action

Rewrite the code to perform the logical operation outside of the indicated function.

For example, to determine whether both a and b are scalars:

a = 1;
b = 2;
isscalar(a) && isscalar(b)

To determine whether a is a scalar, and then determine the logical AND of the result and b:

a = 1;
b = 2;
isscalar(a) && b