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

3 votos

[val idx] = min(X(:,j));
idx will be the row number.

Más respuestas (0)

Categorías

Preguntada:

dav
el 13 de Jul. de 2014

Comentada:

dav
el 13 de Jul. de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by