From Mathworks
An anonymous function consists of a single MATLAB expression and any number of input and
output arguments.
I wonder how an anonymous function can have more than one output arguments? Thanks and regards!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When the expression which your anonymous function is executing can return more than one value, then so can your anonymous function.
For example, using the max function which can return both the max value of an array and its index: