find the minimum of a matrix

2 visualizaciones (últimos 30 días)
dav
dav el 13 de Jul. de 2014
Comentada: dav el 13 de Jul. de 2014
Hi,
Can someone please help me to find the row number corresponding to the minimum value of the jth column of a matrix?
thanks.

Respuesta aceptada

James Tursa
James Tursa el 13 de Jul. de 2014
[val idx] = min(X(:,j));
idx will be the row number.

Más respuestas (0)

Categorías

Más información sobre Data Types 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!

Translated by