Explanation

If you use the end keyword within parentheses, MATLAB expects it is to index into array variables. The end in this code does not appear to be used as an index into an array variable.


Suggested Action

If the code has an error, such as an incorrect function call or typographical error, correct the code.

If end is used to index into an array variable, and the variable was introduced implicitly, consider defining the variable explicitly before indexing into it. For example, you can define a variable explicitly by initializing it. Explicit variable definition indicates that the variable is indeed a variable and not a function that has the same name.

If Code Analyzer generated this message incorrectly, consider suppressing the message as described in Adjust Code Analyzer Message Indicators and Messages.