matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi there, I have a square matrix and I want to find location of the maximum and minumum in each row.
EDITED!
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 23 Mai 2012
EDIT
A = rand(5)
[id,id] = sort(A,2)
minrowloc = id(:,1)
maxrowloc = id(:,end)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!