필터 지우기
필터 지우기

Does Matlab Use All of a PC's Memory?

조회 수: 2 (최근 30일)
David Koenig
David Koenig 2011년 12월 20일
My laptop (Toshiba Satellite) has 1 GB of memory. I do a lot of work with wav files and I often get "out of memory" errors. If I upgrade to a laptop with more memory will Matlab use it? Thanks.

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 12월 20일
Sure. 32 bit MATLAB still has a threshold of around 4gb maximum but 64bit MATLAB on a 64 bit machine can have as big an array as you have memory (well up until 2^64-1)
Also see:
  댓글 수: 3
Jason Ross
Jason Ross 2011년 12월 20일
Also note that pretty much any 32-bit OS has some limit around 4GB. You can use tricks like PAE to try and eke a little more out of it, but the processes themselves will still have limits.
If one is consistently running out of memory with their work, there is really no reason to not move to 64-bit -- on a Mac, Windows or Linux. RAM is also pretty inexpensive these days, as well.
Malcolm Lidierth
Malcolm Lidierth 2011년 12월 20일
Even on a 64 bit system, MATLAB can be slow when the size of a matrix exceeds the available RAM and virtual memory is used. For example, pre-allocating 8Gb to a double precision array on a 4Gb Mac takes 120+ seconds.
Using a 8Gb scratch file and memory mapping that can speed things up: for 8Gb array above by 100x.
I have just posted a VVAR class to the FEX that helps with that (not on-line at the time of writing but should be soon). See:
http://www.mathworks.com/matlabcentral/fileexchange/authors/23816

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by