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

2 visualizaciones (últimos 30 días)
How can I delete a row of numbers in which the number in the first column is less than a threshold?

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 19 de Jun. de 2013
glass half empty
X(X(:,1)<10,:) = [];
glass half full
Y = X(X(:,1)>=10,:);

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 19 de Jun. de 2013
A=rand(100,2) %example
a=A(1,:);
A(A(:,1)<0.2,:)=[];
A=[a;A]

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by