help-octave
[Top][All Lists]
Advanced

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

vectorization


From: Nidjara
Subject: vectorization
Date: Sun, 11 Jan 2015 01:19:10 -0800 (PST)

Hi,

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

but this appears not to be as simple as it seems. Can you please help.

Thanks!



--
View this message in context: 
http://octave.1599824.n4.nabble.com/vectorization-tp4668064.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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