Hi,
I have a matrix of 12x101.
I am looking to then select, out of the matrix, collumns that have a value above a threshold.
E.g- A=
88 79 56
91 89 95
94 87 84
For B =A>90
B=
88 56
91 95
94 84
I feel like this should be simple, but I am unsure.
Thank you.

 채택된 답변

Davide Masiello
Davide Masiello 2022년 2월 4일

0 개 추천

Try with this:
A = [88 79 56; 91 89 95; 94 87 84];
threshold = 90;
l = find(sum(A>threshold,1));
B = A(:,l);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Aerospace Blockset에 대해 자세히 알아보기

태그

질문:

H
H
2022년 2월 4일

댓글:

H
H
2022년 2월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by