How can I delete a row of numbers in which the number in the first column is less than a threshold?

조회 수: 3 (최근 30일)
How can I delete a row of numbers in which the number in the first column is less than a threshold?

채택된 답변

Sean de Wolski
Sean de Wolski 2013년 6월 19일
glass half empty
X(X(:,1)<10,:) = [];
glass half full
Y = X(X(:,1)>=10,:);

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 19일
A=rand(100,2) %example
a=A(1,:);
A(A(:,1)<0.2,:)=[];
A=[a;A]

카테고리

Help CenterFile Exchange에서 Other Formats에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by