usa find with vector in matrix

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

usa find with vector in matrix

LucaLuca
This post was updated on .
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),R(gg,2))<=NTR(R(gg,1),R(gg,2)))(end);

endfor

it's possible to velocize it? thank for help



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