Matlab is running really slowly R2015b

조회 수: 4 (최근 30일)
Kristoffer Lindvall
Kristoffer Lindvall 2015년 11월 19일
댓글: Walter Roberson 2016년 1월 27일
I just reinstalled matlab on my laptop to get the "latest and greatest", but now my code takes like 40 seconds to run, instead of 2sec. The symbolic toolbox that is in use seems to be the MuPad. I have no idea what is going on, because it is the same code that I am running. I am using a lot of symbolic stuff, like jacobian and sub etc. But it used to take 2 sec so something else is going on. Has anyone else had the same problem?
  댓글 수: 1
Richa Gupta
Richa Gupta 2015년 11월 25일
It is difficult to say what must be causing the slowness. I would suggest you to run a profiler on your code. You can try running the code using the 'Run and Time' option in MATLAB to see which portion of your code is causing MATLAB to be slow.

댓글을 달려면 로그인하십시오.

채택된 답변

Michael Armstrong
Michael Armstrong 2016년 1월 27일
I've had exactly the same problem, code that took 40s to run takes 20mins.
Do you also have Maple installed? Once I got the Maple toolbox installed it was ~10X faster than the matlab symbolic toolbox. 300s->29s, for a script that simply does a double loop to substitute values into a symbolic matrix and make some calculations.
  댓글 수: 2
Kristoffer Lindvall
Kristoffer Lindvall 2016년 1월 27일
Thanks for the reply. Good to know I'm not alone!
I have been trying to install Maple toolbox but I have been too impatient to get to work. What version of Matlab are you using, and where did you get the Maple toolbox installer? Maybe I am using an incompatible version of the toolbox or something.
Walter Roberson
Walter Roberson 2016년 1월 27일
I got my Maple toolbox installer from Maplesoft, the manufacturers of Maple. Maple is not available from Mathworks since 2008.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

timo
timo 2015년 11월 25일
I think Mathworks didnt focues too much on performance improvement , as some product are painfully slow , like Matlab 3d Animation

Community Treasure Hunt

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

Start Hunting!

Translated by