[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Vectorize loop.
From: |
Matt Taylor |
Subject: |
Re: Vectorize loop. |
Date: |
Mon, 09 Oct 2006 15:42:58 -0600 |
On Mon, 2006-10-09 at 19:09 +0200, TEJEDA HERNANDEZ, CESAR wrote:
> Hello,
>
> Does anyone know if this loop can be vectorized and how?
>
> for k=1:rows(PDF1y)
> Py1res(k,:)=PDF1y(k,aux1(k,2:22));
> end
>
>
> Thanks in advance,
>
> César.
>
Just a guess, without any testing ... but what's wrong with this:
Py1res = PDF1y(:,aux1(:,2:22));