matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi there, I have a square matrix and I want to find location of the maximum and minumum in each row.
EDITED!
0 Commenti
Risposta accettata
Andrei Bobrov
il 23 Mag 2012
EDIT
A = rand(5)
[id,id] = sort(A,2)
minrowloc = id(:,1)
maxrowloc = id(:,end)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!