find value close to zero in array

5 Ansichten (letzte 30 Tage)
y0unes
y0unes am 30 Sep. 2019
Beantwortet: Matt J am 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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by