Minimum of a 3X3 matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ken
am 21 Okt. 2016
Bearbeitet: Star Strider
am 21 Okt. 2016
I am trying to find the min and the indices of the min in a 3X3 matrix. want to use a variation of "find(arr == max(arr));"
Kindly help
0 Kommentare
Akzeptierte Antwort
Star Strider
am 21 Okt. 2016
Bearbeitet: Star Strider
am 21 Okt. 2016
Two possible approaches:
A = rand(3); % Create Data
[Amin,idx] = min(A(:)); % One Option
[r,c] = ind2sub(size(A), idx)
[r,c] = find(A == min(A(:))) % Another Option
Amin = A(r,c)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Digital Filter Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!