Minimum y-value in each column

3 vues (au cours des 30 derniers jours)
Hg
Hg le 20 Oct 2015
Modifié(e) : Thorsten le 20 Oct 2015
How to find the first y value (in red) efficiently in each column of the image below?

Réponse acceptée

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

Plus de réponses (0)

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by