Problem 44808. Make an anonymous function that has variable output
Make a anonymous function that has variable output.
f = @(x)...
the following equation→equation(s) as followed has(ve)
a = f(x) ==> a = x{1}
[a,b] = f(x) ==> a = x{1}, b = x{2}
...
You can see the test suite for details.
Solution Stats
Problem Comments
-
1 Comment
bainhome
on 2 Dec 2018
Very interesting topic... glad be part of this multi-output discussion.
Solution Comments
Show commentsProblem Recent Solvers31
Suggested Problems
-
Find the two most distant points
2949 Solvers
-
Find state names that end with the letter A
1197 Solvers
-
Reverse the elements of an array
1108 Solvers
-
Handle to an array of functions
61 Solvers
-
Remove entire row and column in the matrix containing the input values
545 Solvers
More from this Author17
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!