フィルターのクリア

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 Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by