find value close to zero in array

5 vues (au cours des 30 derniers jours)
y0unes
y0unes le 30 Sep 2019
Réponse apportée : Matt J le 30 Sep 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

Réponse acceptée

Matt J
Matt J le 30 Sep 2019
[~,location]=min( abs( yourArray(:,3:4) ) )

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by