find the minimum of a matrix

1 view (last 30 days)
dav
dav on 13 Jul 2014
Commented: dav on 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.

Accepted Answer

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

More Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!