find the minimum of a matrix

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

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

More Answers (0)

Categories

Asked:

dav
on 13 Jul 2014

Commented:

dav
on 13 Jul 2014

Community Treasure Hunt

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

Start Hunting!