MATLAB running same code slower and slower

1 view (last 30 days)
Champ
Champ on 11 Jul 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 Comments
Andreas Goser
Andreas Goser on 11 Jul 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 on 11 Jul 2012
Edited: Jan on 11 Jul 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.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!