How can I eliminate some value in array?

3 visualizaciones (últimos 30 días)
Sakdinon Nopparit
Sakdinon Nopparit el 31 de En. de 2020
Comentada: Sakdinon Nopparit el 31 de En. de 2020
I need to eliminate value in column2.
If value in column2 is not in 0.0024<x<0.0032 it will eliminate that value and also eliminate value in the same roll

Respuestas (1)

Walter Roberson
Walter Roberson el 31 de En. de 2020
mask = 0.0024 < x(:, 2) & x(:, 2) < 0.0032;
x = x(mask, :);

Categorías

Más información sobre Discrete Math en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by