matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi there, I have a square matrix and I want to find location of the maximum and minumum in each row.
EDITED!
0 comentarios
Respuesta aceptada
Andrei Bobrov
el 23 de Mayo de 2012
EDIT
A = rand(5)
[id,id] = sort(A,2)
minrowloc = id(:,1)
maxrowloc = id(:,end)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!