find value close to zero in array

5 views (last 30 days)
y0unes
y0unes on 30 Sep 2019
Answered: Matt J on 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

Accepted Answer

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

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!