multi-dimensional array, minimum, coordinate

조회 수: 8 (최근 30일)
BARAN Özbakr
BARAN Özbakr 2014년 4월 26일
댓글: BARAN Özbakr 2014년 4월 26일
Hello, I have to find minimum element of multi-dimensional array and its coordinate
I have this, error=criteria(k,code,i);
thanks

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 4월 26일
a=rand(3,4,5);
[min_v,idx]=min(a(:))
[ii,jj,kk]=ind2sub(size(a),idx)

추가 답변 (0개)

카테고리

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