How can I eliminate some value in array?

4 次查看(过去 30 天)
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

回答(1 个)

Walter Roberson
Walter Roberson 2020-1-31
mask = 0.0024 < x(:, 2) & x(:, 2) < 0.0032;
x = x(mask, :);

类别

Help CenterFile Exchange 中查找有关 Programming Utilities 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by