Thread Subject: Standard Deviation Calculation: Out of Memory?

Subject: Standard Deviation Calculation: Out of Memory?

From: Stephen

Date: 26 Jul, 2007 15:11:19

Message: 1 of 3

Hi,

I was trying to calculate the standard deviation of a 3,000,000 by 9 matrix using function "std". But I got an "Out of Memory" error message. Is it because Matlab couldn't handle stdev calculation if the underlying data is too big?

Thanks,
Stephen

Subject: Standard Deviation Calculation: Out of Memory?

From: Titus

Date: 26 Jul, 2007 17:54:11

Message: 2 of 3

Hi Stephen,

your matrix needs about 200MB of memory. The function std creates one copy
of this matrix during the computation, so that's another 200MB, which seem
not to be there anymore, therefore the error message...

Titus

"stephen " <huangj5@nationwide.com> schrieb im Newsbeitrag
news:f8adin$e8n$1@fred.mathworks.com...
> Hi,
>
> I was trying to calculate the standard deviation of a 3,000,000 by 9
> matrix using function "std". But I got an "Out of Memory" error message.
> Is it because Matlab couldn't handle stdev calculation if the underlying
> data is too big?
>
> Thanks,
> Stephen


Subject: Standard Deviation Calculation: Out of Memory?

From: Rick Rosson

Date: 26 Jul, 2007 15:06:39

Message: 3 of 3


See MathWorks Technical Note 1106:

   http://www.mathworks.com/support/tech-notes/1100/1106.html







"stephen " <huangj5@nationwide.com> wrote in message
news:f8adin$e8n$1@fred.mathworks.com...
> Hi,
>
> I was trying to calculate the standard deviation of a 3,000,000 by 9
> matrix using function "std". But I got an "Out of Memory" error message.
> Is it because Matlab couldn't handle stdev calculation if the underlying
> data is too big?
>
> Thanks,
> Stephen


Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com