如何在多维矩阵中找到最小值所在位置。

조회 수: 2 (최근 30일)
heyip
heyip 2022년 11월 17일
답변: pokokim 2022년 11월 17일
我是五维矩阵,输入这个后
[i1,m1,n1,j1,k1]=find(e==min(min(min(min(min(e))))))
出现
Error using find
Too many output arguments.
这里单独用find,得到211267。那它对应哪个位置?我是11*16*15*16*16的五维矩阵

채택된 답변

pokokim
pokokim 2022년 11월 17일
可以用ind2sub转换

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 图和网络算法에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!