find value close to zero in array

5 visualizaciones (últimos 30 días)
y0unes
y0unes el 30 de Sept. de 2019
Respondida: Matt J el 30 de Sept. de 2019
Hey everybody,
I have an array (44x5) with number between -85.95 and 85.95, and I would like to find the value which is close to Zero in the columns 3 & 4

Respuesta aceptada

Matt J
Matt J el 30 de Sept. de 2019
[~,location]=min( abs( yourArray(:,3:4) ) )

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by