Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Condensing a vector
Date: Thu, 9 Apr 2009 08:29:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <grkbkd$bmr$1@fred.mathworks.com>
References: <grjucl$mp1$1@fred.mathworks.com> <grk16l$opp$1@fred.mathworks.com> <grk32r$oti$1@fred.mathworks.com> <grk5l5$ah8$1@fred.mathworks.com> <grk7j2$gk3$1@fred.mathworks.com> <grka00$nav$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1239265741 11995 172.30.248.38 (9 Apr 2009 08:29:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 9 Apr 2009 08:29:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1056072
Xref: news.mathworks.com comp.soft-sys.matlab:531609

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <grka00$nav$1@fred.mathworks.com>...
> I'm not sure you have seen it, so I post again.
> 
> step=1/2  % <- 1/2, 1/4, 1/8 etc... inverse of the "density"
> B = interp1((0:length(A)-1),A,(0:step:length(A)-1))
> 
> Bruno 

Thanks Bruno, that did what  I needed