determine minimum from the first column values of matrix and removing the rest of the rows

1 vue (au cours des 30 derniers jours)
Hi everyone, I would like to select only the min of matrix, E from values of the first column of the matrix
E = [0.1 1 19 18 4 3 0 0 0 0 0 0
0.8 1 19 2 3 0 0 0 0 0 0 0
0.2 1 2 3 0 0 0 0 0 0 0 0
];
Results should be:
G = [0.1 1 19 18 4 3 0 0 0 0 0 0
];

Réponse acceptée

Bruno Luong
Bruno Luong le 14 Sep 2019
[~,imin] = min(E(:,1));
G = E(imin,:)

Plus de réponses (0)

Catégories

En savoir plus sur Filter Banks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by