find the minimum of a matrix

2 Ansichten (letzte 30 Tage)
dav
dav am 13 Jul. 2014
Kommentiert: dav am 13 Jul. 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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by