matrix
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi there, I have a square matrix and I want to find location of the maximum and minumum in each row.
EDITED!
0 commentaires
Réponse acceptée
Andrei Bobrov
le 23 Mai 2012
EDIT
A = rand(5)
[id,id] = sort(A,2)
minrowloc = id(:,1)
maxrowloc = id(:,end)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!