I’ve got a huge array of values, all or which are much smaller than 1, so using a round up/down function is useless. Is there anyway I can use/make the ‘find’ function on these non-integer values?
e.g.
ind=find(x,9.5201e-007)
FWIW all the values are in acceding sequential order in the array.
Much appreciated!
The syntax you’re using isn’t correct.
returns
knon-zero values, which is whykmust be an integer. You wantNote that this needs to be an exact representation of the floating point number, otherwise it will fail. If you need tolerance, try the following example: