Replace for loop with cell function to reduce run time
Ältere Kommentare anzeigen
My question is regarding to improve performance of code so that it will take less time, I want to replace for loop in my program with cellfunc() because i am performing operation on cells, will it be more faster than for loop?
Thanks
Antworten (1)
Walter Roberson
am 25 Dez. 2013
Bearbeitet: Walter Roberson
am 25 Dez. 2013
0 Stimmen
Not necessarily. You need to experiment and find out. "For" loops are sometimes faster as they do not have the call overhead.
1 Kommentar
arun
am 25 Dez. 2013
Kategorien
Mehr zu Direct Search finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!