[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vectorization

From: Andreas Weber
Subject: Re: vectorization
Date: Sun, 11 Jan 2015 13:11:56 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0

Am 11.01.2015 um 10:19 schrieb Nidjara:
> I have 3 vectors (nx1) of real numbers, denote them with L1, L2, L3, and
> (nxn) matrix G. I'm trying to vectorize the following loop:
>   for i=1:n
>     G(L1(i), L2(i))=L3(i);
>   end

You can't use real numbers for indexing. Are L1, L2, L3 natural numbers/
positive integers > 0? Is "L2(i))=L3(i)" really intended (note the
single =, not ==)?

> ... Can you please help.

Can you please create an self explaining example with Matrix G, L1, L2,
L2 and the wanted output?

-- Andy

reply via email to

[Prev in Thread] Current Thread [Next in Thread]