find value close to zero in array

조회 수: 5 (최근 30일)
y0unes
y0unes 2019년 9월 30일
답변: Matt J 2019년 9월 30일
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

채택된 답변

Matt J
Matt J 2019년 9월 30일
[~,location]=min( abs( yourArray(:,3:4) ) )

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by