Jump to content
EwinRacing Flash Series Gaming Chairs
soutakux

Help improve laptop performance for Matlab

Recommended Posts

Hi I was wondering of anyone knew how to improve the performance of Matlab on my laptop. Im new to the site and have a 4th gen i7 on my lenovo 510p. When I run my code, Matlab seems to only use 20 percent of my cpu. Does anyone know if this is due to hyperthreaing or if its due to a restriction on Matlab itself?

Share this post


Link to post
Share on other sites

I'm not sure... it might also depend on what you do with matlab. Not everything is parallelizable, so that might be the reason why it can't make full use of your CPUs potential.

Share this post


Link to post
Share on other sites

It's Matlab, last time I used it though was 10 years ago for my thesis... it was slower than death... took me 3 months to do something that in C required max a week... I am pretty sure things have changed since then, and it will probably offer code optimization for the toolbox you use but I wouldn't expect miracles.

Share this post


Link to post
Share on other sites
It's Matlab, last time I used it though was 10 years ago for my thesis... it was slower than death... took me 3 months to do something that in C required max a week... I am pretty sure things have changed since then, and it will probably offer code optimization for the toolbox you use but I wouldn't expect miracles.

Don't worry, it hasn't changed much. I haven't run anything fancy that required a decently measurable amount of time to run, but even with the small stuff I think "this could be a bit faster...."

So yeah, don't expect it to run blazing fast.

Share this post


Link to post
Share on other sites
Hi I was wondering of anyone knew how to improve the performance of Matlab on my laptop. Im new to the site and have a 4th gen i7 on my lenovo 510p. When I run my code, Matlab seems to only use 20 percent of my cpu. Does anyone know if this is due to hyperthreaing or if its due to a restriction on Matlab itself?

I am using Matlab for my research for a year now.. I do agree that Matlab is not the best when it comes to High speed computing. But certain performance can be improved atleast a bit , it depends on what you are trying to do. Let me know.. And I'll try to help..

Sent from my GT-I9000 using Tapatalk

Share this post


Link to post
Share on other sites

I'm afraid you can't improve it without redesigning your program to take the advantage of multi-processor...

Option 1, try using Parallel computing toolbox.

Option 2, or you can simulate the multi-threading process if you don't wanna purchase parallel toolkit. In your primary code, start another matlab instance by invoking a batch file which opens up matlab and run a script. The synchronization can be coordinated by sharing a piece of memory specifically reserved for parameter transferring, or you can simply create a .mat file and share the parameters via hard drive (check the file every several millisecond). This is what I used for multi-threading during the development of one internal test frame, and I saved a lot of money for my team lol (cuz parallel computing toolbox cost some 1000 dollars a piece)

  • Thumbs Up 2

Share this post


Link to post
Share on other sites

i would recommend to install a SSD and a fast CPU. I had normal HDD and it took 10 sec to open the matlab, now it takes only a sec to open the program. you can guess how fast it is now.

Share this post


Link to post
Share on other sites

I already have a fast CPU and a SSD installed. Actually some of my friends that one way of improving the efficiency of a code is to define the size of the matrix first then fill it in with numbers instead of increasing the size of the matrix as the code iterates.

Share this post


Link to post
Share on other sites

The graphics card should not be too important, I do not know if any toolboxes allow for GPU compute anyway. Since Matlab is essential running code, and especially iterations, in serial, the best way to improve performance is to improve single threaded.

Definately disable hyper threading and see if you cant tweak the processor some with intel XTU (overclocking, use at your own risk!)

Hope this helped!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.