How can I eliminate some value in array?

1 回表示 (過去 30 日間)
Sakdinon Nopparit
Sakdinon Nopparit 2020 年 1 月 31 日
コメント済み: Sakdinon Nopparit 2020 年 1 月 31 日
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, :);
  1 件のコメント
Sakdinon Nopparit
Sakdinon Nopparit 2020 年 1 月 31 日
thank you very much

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDiscrete Math についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by