Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Vectorizing different parts of the same array
Date: Mon, 6 Oct 2008 16:34:02 +0000 (UTC)
Organization: Atlantic Inertial Systems
Lines: 7
Message-ID: <gcdelq$5he$1@fred.mathworks.com>
References: <gcd9os$6vt$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 1223310842 5678 172.30.248.38 (6 Oct 2008 16:34:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 6 Oct 2008 16:34:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1405925
Xref: news.mathworks.com comp.soft-sys.matlab:493856


"Theodor Zouk" <rebet4@hotmail.com> wrote 

> I want to get k(1:n),where n=4096, make some calculation and then store the result in the first row in an matrix..... then jump to k(n+1:2*n),calculated, store the result in the second row in the matrix and then jump to k(2*n+1:3*n) and so on... Can this be vectorized? I have tried... but i dont think u can avoid an for loop here...

can you reshape to 4096xN and work on each column?

~Adam