필터 지우기
필터 지우기

How do i get the position of the minimum value in at 3 dimensional array?

조회 수: 2 (최근 30일)
maarten de Jong
maarten de Jong 2016년 12월 29일
편집: Matt J 2016년 12월 29일
If I have a 3 dimensional array, an I want to find the position of the minimal value of that array, preferably in vector form, what command do I use?

답변 (1개)

Matt J
Matt J 2016년 12월 29일
편집: Matt J 2016년 12월 29일
minval=min(yourArray(:));
[xloc,yloc,zloc] = ind2sub(size(yourArray), find(yourArray==minval) )

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by