Arrayfun on an array of objects and multiple parameter function
Show older comments
Hello,
After reading this blog : http://blogs.mathworks.com/loren/2012/03/26/considering-performance-in-object-oriented-matlab-code/.
I decided to replace some for loops of my code with the function arrayfun.
It should make the syntax more compact and speed-up the code.
I encountered 2 problems :
• Is it possible to call complex functions which have more than one parameter with the arrayfun function, the input parameters of my function are objects.
• I think it is not possible to use arrayfun on an array of objects. Is it possible to make arrayfun work even though it is an array of objects?
Thank your for your help
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!