Path: news.mathworks.com!not-for-mail
From: "Titus" <titus.edelhofer@mathworks.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Standard Deviation Calculation: Out of Memory?
Date: Thu, 26 Jul 2007 17:54:11 +0200
Organization: The MathWorks, Inc.
Lines: 21
Message-ID: <f8ag33$2c3$1@fred.mathworks.com>
References: <f8adin$e8n$1@fred.mathworks.com>
NNTP-Posting-Host: de-edelhoft-x.ac.mathworks.de
X-Trace: fred.mathworks.com 1185465252 2435 172.16.75.150 (26 Jul 2007 15:54:12 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 26 Jul 2007 15:54:12 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
Xref: news.mathworks.com comp.soft-sys.matlab:421222



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