MATLAB running same code slower and slower

5 vues (au cours des 30 derniers jours)
Champ
Champ le 11 Juil 2012
I've no idea what's the problem. I ran this routine I wrote yesterday and it took 7 seconds, pretty much normal. Last night, the same routine took 30 secs. I tried restarting my com, reopening matlab, shut com down completely. Doesnt change. Today I tried it again and now the same routine takes 45 secs! Any idea or clue as what might be causing this?
By the way, is it normal for the program to utilize only one core? I've got an i7 but I'm not sure if matlab used to use all of them running this routine or not. But now it's using only one core.
Thanks so much in advance!
  2 commentaires
Andreas Goser
Andreas Goser le 11 Juil 2012
The question is if the code remains the same, but what is with the data? Same data? Appending data? Larger data sets to import?
Jan
Jan le 11 Juil 2012
Modifié(e) : Jan le 11 Juil 2012
Does your code append text to a log file, which is growing from call to call? Does the profiler show, where the additional time is spent? without seeing the code, we can only guess boldly.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by