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

Contact us at files@mathworks.com