Testing MATLAB to the limits!

MATLAB users Hello!
I need to construct 6 billion pairs of some numbers and I would like to know if there is anything that I can do to increase the performance/speed/memory of MATLAB.
I use r2012a and r2009
Thanks in advance!

댓글 수: 2

Daniel Shub
Daniel Shub 2012년 8월 9일
What exactly are you going to do with all this data? It is unlikely that you will have enough RAM to load it all into memory and then do anything with it. Even saving it to a file is going to be painful.
Yash
Yash 2012년 8월 9일
your Matlab will give out of memory error

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

 채택된 답변

per isakson
per isakson 2012년 8월 8일

0 개 추천

  1. use 64bit Matlab
  2. use uint8 if possible
  3. install a lot of RAM
  4. pre-allocate
  5. use the function, PROFILE
>> 6e9*2*8/1e9
ans =
96

댓글 수: 4

loukos
loukos 2012년 8월 8일
편집: loukos 2012년 8월 8일
what is:
6e9*2*8/1e9
ans =
96
per isakson
per isakson 2012년 8월 8일
That is "6 billion" x "pairs" x "8bytes" converted to GB.
Sebastian Holmqvist
Sebastian Holmqvist 2012년 8월 9일
While the data would amount to a whopping 96 Gigabytes (using uint8), since computers are binary-based you have to represent data in Gibibytes (1024^3) if you wish to store them to disk.
6e9*2*8/1024^3 = 89.407 GiB data on disk. On top of that you can expect some file overhead data, which depends on your method of storing the data. When it comes to memory, you still need 96 GB.
per isakson
per isakson 2012년 8월 9일
Not uint8, "8bytes" stands for double.

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

추가 답변 (1개)

Greg Heath
Greg Heath 2012년 8월 8일

0 개 추천

help memory
doc memory
Pre-allocate space as much as possible.
Greg

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

질문:

2012년 8월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by