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 Exchange에서 Logical에 대해 자세히 알아보기

질문:

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