필터 지우기
필터 지우기

I would like to select the values from my 2nd column which have the less than 5 value in the 1st column. So my matrix looks maybe like this:

조회 수: 2 (최근 30일)
1. column: [ 3 5 8 2 6 4 10 6 1 9 2 6 ]
2. column: [ 11 32 24 47 15 33 39 3 43 8 55 15 ]

채택된 답변

Stephen23
Stephen23 2016년 2월 16일
편집: Stephen23 2016년 2월 16일
>> M = [ 3 5 8 2 6 4 10 6 1 9 2 6; 11 32 24 47 15 33 39 3 43 8 55 15 ].';
>> M(M(:,1)<5,:)
ans =
3 11
2 47
4 33
1 43
2 55
Basic MATLAB usage like this is covered in the introductory tutorials:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by