필터 지우기
필터 지우기

find value in matrix

조회 수: 2 (최근 30일)
Rahul
Rahul 2012년 6월 4일
a =
3.00 16.00
6.00 22.00
2.00 6.00
1.00 25.00
4.00 4.00
I want those rows in which second column is less than a certain value say 15
b= 2 6
4 4
DO i need to sort or can I do it without sorting..

채택된 답변

Thomas
Thomas 2012년 6월 4일
You can do without sorting:
b=a(a(:,2)<15,:)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by