Question: Finding elements adress in matrix

Hello!



Is there a function that allows finding address of array/matrix's element equal or closest to given number. Or I have to write a loop.



en example


array


[1 2 5 6 9 10]



given value


5.1



the closest is 5 and it is in 3th column.



Regards,



Smagliczka

Please Wait...