help-octave
[Top][All Lists]
Advanced

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

usa find with vector in matrix


From: LucaLuca
Subject: usa find with vector in matrix
Date: Thu, 25 Jul 2019 03:02:19 -0500 (CDT)

hi, i need to speed code but i see can't possible to use vector  to find
element in matrix

 code:

R is a matrix (x,2) 

Ntrades,NtTR are  matrix(n,m)
 
for gg=1:rows(R)
[roww(gg,1),coll(gg,2)]=find(Ntrades(1:R(gg,1))<=NTR(R(gg,1),R(gg,2)))(1);
endfor

it's possible to velocize it? thank for help



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



reply via email to

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