[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
- vectorization, Nidjara, 2015/01/11
- Re: vectorization, Helios de Rosario, 2015/01/12
- Re: vectorization, Nidjara, 2015/01/12
- Re: vectorization, Dave Cottingham 2, 2015/01/12
- Re: vectorization, Andreas Weber, 2015/01/12
- Re: vectorization, Nidjara, 2015/01/12
- Re: vectorization, Andreas Weber, 2015/01/12
- Re: vectorization, Nidjara, 2015/01/12