Path: news.mathworks.com!not-for-mail
From: "Nicholas " <OtherPeopleTookAllTheGoodNames@deleteme.gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Vectorizing data lookback?
Date: Wed, 3 Sep 2008 15:30:19 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <g9maib$9di$1@fred.mathworks.com>
References: <g9db32$oq6$1@fred.mathworks.com> <g9gsna$qll$1@fred.mathworks.com>
Reply-To: "Nicholas " <OtherPeopleTookAllTheGoodNames@deleteme.gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1220455819 9650 172.30.248.38 (3 Sep 2008 15:30:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 3 Sep 2008 15:30:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1223050
Xref: news.mathworks.com comp.soft-sys.matlab:488421



"Titus" <titus.edelhofer@mathworks.de> wrote in message
<g9gsna$qll$1@fred.mathworks.com>...

> Hi,
> 
> without really answering the question: did you preallocate
your output? 
> Something like
> output = zeros(size(data));
> before entering the loop?
> 
> Titus 
> 
> 

Titus-

Yes I do preallocate the vectors. I've tried to do
everything I can to make the loop JIT compatible, but it's
still too slow.

Nick