SubseaEng10
Mechanical
- Feb 9, 2010
- 6
Hi all,
I am trying to find an index of a matrix with a conditin.
let say:
M=(-10,-8,-5,-3,-2,1.5,3,4,8)
I want to find the first index of this matrix which its value is greater than 0.
So in matrix M, the return value should be 5 (corresponds to 1.5).
could anyone suggest the sloution.
Thanks.
I am trying to find an index of a matrix with a conditin.
let say:
M=(-10,-8,-5,-3,-2,1.5,3,4,8)
I want to find the first index of this matrix which its value is greater than 0.
So in matrix M, the return value should be 5 (corresponds to 1.5).
could anyone suggest the sloution.
Thanks.