필터 지우기
필터 지우기

How can I eliminate some value in array?

조회 수: 4 (최근 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, :);

카테고리

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