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

2 次查看(过去 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 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by