Discussion:
Change vector element in array
LucaLuca
2018-10-03 18:23:49 UTC
Permalink
hi, look this problem :

a =

NaN NaN NaN
NaN NaN NaN
NaN NaN NaN

v =

2 1 3

=Nan 0 0 (last 2 element =0)
=Nan Nan 0 (last 1 element =0)
= 0 0 0 (last 3 element =0)

it's possible to avoid loop?
txk



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
LucaLuca
2018-10-03 18:23:35 UTC
Permalink
hi, look this problem :

a =

NaN NaN NaN
NaN NaN NaN
NaN NaN NaN

v =

2 1 3

=Nan 0 0 (last 2 element =0)
=Nan Nan 0 (last 1 element =0)
= 0 0 0 (last 3 element =0)

it's possible to avoid loop?
txk



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
Loading...