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.

 Akzeptierte Antwort

Davide Masiello
Davide Masiello am 4 Feb. 2022

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Aerospace Blockset finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

H
H
am 4 Feb. 2022

Kommentiert:

H
H
am 4 Feb. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by