Replace for loop with cell function to reduce run time

4 vues (au cours des 30 derniers jours)
arun
arun le 25 Déc 2013
Commenté : arun le 25 Déc 2013
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

Réponses (1)

Walter Roberson
Walter Roberson le 25 Déc 2013
Modifié(e) : Walter Roberson le 25 Déc 2013
Not necessarily. You need to experiment and find out. "For" loops are sometimes faster as they do not have the call overhead.
  1 commentaire
arun
arun le 25 Déc 2013
Okiee i will experiment and will check out the performance.

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by