How can I eliminate some value in array?

1 Ansicht (letzte 30 Tage)
Sakdinon Nopparit
Sakdinon Nopparit am 31 Jan. 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

Antworten (1)

Walter Roberson
Walter Roberson am 31 Jan. 2020
mask = 0.0024 < x(:, 2) & x(:, 2) < 0.0032;
x = x(mask, :);

Kategorien

Mehr zu Discrete Math finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by