Explanation

Code Analyzer detects an input argument to a function or method that the code does not use. This message might result because there is a typographical error in the declaration or the body of the function or method. This message could also result because your code intentionally does not use the specified input argument.


Suggested Action

If the message results from a typographical or other error in the function or method definition, correct the error. If you intended to leave the argument unused, replace it in functions and methods with the tilde operator (~). One advantage of using a tilde is that it reduces the number of names in the workspace, making your program easier to inspect and debug. For more information, see “Ignoring Selected Outputs or Input Arguments”.

MATLAB introduces the ability to use a tilde instead of an argument name in R2009b. Therefore, if your program runs in versions of MATLAB before R2009b, do not use the tilde operator. Instead, consider suppressing this message as described in Adjust Code Analyzer Message Indicators and Messages.