Explanation

An assignment statement makes an assignment to multiple values, but the expression on the right side of the assignment does not appear to produce multiple values. For example, code such as the following causes Code Analyzer to display this message:

[m, n] = [1, 2];

or

[m,n]= A + B;

Code Analyzer can incorrectly produce this message if scalar operators are overloaded. For information on overloading operators, see “Implementing Operators for Your Class.


Suggested Action

If Code Analyzer evaluated the situation correctly, correct the code. Otherwise, suppress the message as described in Adjust Code Analyzer Message Indicators and Messages.