Ältere Kommentare anzeigen
hi 2 all, Can anyone say how to reduce execution time of 'for loop' in matlab How to replace for loop?
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 16 Aug. 2011
0 Stimmen
The one sure way to reduce the execution time of a for loop is to eliminate that section of code.
Anything else depends on exactly what your for loop contains. There are some for loops that are now faster than vectorizing or using one of the library routines -- faster even than using a mex routine.
1 Kommentar
harjan
am 16 Aug. 2011
Kategorien
Mehr zu Loops and Conditional Statements 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!