Extract values above another value in a matrix

Hey
I have a matrix with 32304x1 value, and i want to know how to get values out of the matrix that have a certain amount of hight. To explain what i mean, here is an exemble:
\A=[2;3;8;9;5;4;7;7]
% than I want a command that can give me all the values above 5 as:
"Comand(A,5)=[7; 7; 8; 9]" If that maked any sense at all?

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 11 月 19 日
編集済み: Azzi Abdelmalek 2014 年 11 月 19 日

1 投票

A(A>5)

2 件のコメント

Jesper
Jesper 2014 年 11 月 19 日
Thanks a lot!!!!
Jesper
Jesper 2014 年 11 月 19 日
:-) It worked!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2014 年 11 月 19 日

コメント済み:

2014 年 11 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by