MATLAB Answers

matlab process is too slow

558 ビュー (過去 30 日間)
Mahmoud Wagdy
Mahmoud Wagdy 2018 年 1 月 18 日
Commented: Christine Hill 2019 年 5 月 22 日
my laptop specs is kindly high 8GB Ram core i7 Nvidia 840m but matlab commands is slow for example i did 5+5 that took 7 minute to get the answer ps : Solidworks and some High games are working perfectly

  2 件のコメント

Image Analyst
Image Analyst 2018 年 1 月 18 日
You have not asked a question, but I will. What is "5+5"? If you have code you want people to test/time, post it.
Mahmoud Wagdy
Mahmoud Wagdy 2018 年 1 月 24 日
i mean why it's too slow

サインイン to comment.

件の回答 (4)

Andrew Wingard
Andrew Wingard 2019 年 3 月 7 日
I had a similar problem on my mac, this was ultimately related to an app called Magnet I purchased through the app store. If you are running magnet, I suggest uninstalling the application and running matlab.

  3 件のコメント

Daniel Ayoub
Daniel Ayoub 2019 年 4 月 4 日
This worked really well for me. Instead of uninstalling, you can pause Magnet so that it doesn't work with Matlab.
Lauren Saue-Fletcher
Lauren Saue-Fletcher 2019 年 4 月 10 日
You can also tell magnet to ignore matlab if you have matlab open and press on magnet in the top bar. THANK YOU SO MUCH!!! this will have solved hours of future fustration
Christine Hill
Christine Hill 2019 年 5 月 22 日
I just had the same problem and can't believe how much faster Matlab runs when Magnet is closed.

サインイン to comment.


Cam Salzberger
Cam Salzberger 2018 年 1 月 18 日
Hello Mahmoud,
Does this running of 5+5 take a long time just once, then MATLAB is sufficiently fast for the rest of the session? If so, are you making sure to wait until MATLAB is done "Initializing" before you enter code or try to do anything?
If MATLAB is slow every time you enter a command to run during a session, then it could be that MATLAB is having trouble finding your license, or is otherwise slow during your license check. Try out "Solution 1" in the answer here. Despite being for an older version of MATLAB, the specification of the license file with "-c" is still applicable, though the license file itself may have changed depending on your version (.lic now, I believe).
"Solution 2b" in that article is good to check too.
Depending on your version of Windows (I'm assuming Windows here), it's also worth checking out if compatibility mode can help (as mentioned here).
If all that still isn't doing it, can you give us which MATLAB release you have installed, which OS you are using, and if this is a new problem with an old installation, or if MATLAB has always been this way on this machine?
-Cam

  1 件のコメント

Cam Salzberger
Cam Salzberger 2018 年 1 月 29 日
Hey Mahmoud,
Since it's a slow initialization issue, I'll definitely recommend looking into scheduling the MATLAB Startup Accelerator if you're on a Windows machine. This will preload a lot of the material before you try to launch MATLAB, so when you actually launch it, it will start faster. The performance should be comparable to when you close MATLAB, and then start it up again soon after.
If that doesn't do the trick, I'd suggest looking to see if you have a "startup.m" file on the MATLAB path:
which -all startup
If you have a script that's running a lot of commands, or any commands that run slowly, this will slow down initialization time.
There are a few other tips here as well.
For more diagnostic information, you can start MATLAB from Command Prompt (Windows) or a terminal (Unix) with the -timing startup flag:
matlab -timing
Or the -timing+ flag on Unix systems for earlier releases of MATLAB.
This will tell you the breakdown of how the startup time is being spent. If you can't see anything yourself, contacting tech support with the timing details should help you get an answer faster.
-Cam

サインイン to comment.


Mahmoud Wagdy
Mahmoud Wagdy 2018 年 1 月 24 日
Hello Cam, i found that matlab was Initializing but it takes long time like 15 min but after all commands works good

  0 件のコメント

サインイン to comment.


Andrew Wingard
Andrew Wingard 2018 年 10 月 26 日
Does anyone know how to solve this same problem but with a MacBook? The solutions online all assume a windows machine.

  2 件のコメント

Rik
Rik 2018 年 10 月 26 日
Please only use the answer field for answers. You should either post this as a comment, or as a separate question (in which case you should link to this question).
To reply to your question: I have hardly ever worked with Mac, so I would have to Google it as well.
Andrew Wingard
Andrew Wingard 2018 年 10 月 26 日
Thank you for the response, its my first time asking a question. I have added a new question but for MacBooks under the link below.
https://www.mathworks.com/matlabcentral/answers/426331-matlab-slow-initiating-any-command-including-just-clicking-on-mac

サインイン to comment.

サインイン してこの質問に回答します。


Translated by