Arrayfun on an array of objects and multiple parameter function
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!