Minimum y-value in each column

How to find the first y value (in red) efficiently in each column of the image below?

 Accepted Answer

Thorsten
Thorsten on 20 Oct 2015
Edited: Thorsten on 20 Oct 2015
[~,idx] = max(X);
Note that this returns 1 for columns that are all zero.

More Answers (0)

Products

Tags

Asked:

Hg
on 20 Oct 2015

Edited:

on 20 Oct 2015

Community Treasure Hunt

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

Start Hunting!