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

조회 수: 1 (최근 30일)
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
];

채택된 답변

Bruno Luong
Bruno Luong 2019년 9월 14일
[~,imin] = min(E(:,1));
G = E(imin,:)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Filter Banks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by