Afficher commentaires plus anciens
hi 2 all, Can anyone say how to reduce execution time of 'for loop' in matlab How to replace for loop?
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 16 Août 2011
0 votes
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 commentaire
harjan
le 16 Août 2011
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!