find the minimum of a matrix

2 vues (au cours des 30 derniers jours)
dav
dav le 13 Juil 2014
Commenté : dav le 13 Juil 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.

Réponse acceptée

James Tursa
James Tursa le 13 Juil 2014
[val idx] = min(X(:,j));
idx will be the row number.
  1 commentaire
dav
dav le 13 Juil 2014
thank you very much!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Types 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!

Translated by