필터 지우기
필터 지우기

Deleting Some Specific Entries from a vector

조회 수: 18 (최근 30일)
Mücahit Özalp
Mücahit Özalp 2021년 8월 21일
편집: Mücahit Özalp 2024년 7월 13일 20:48
이 질문에 Steven Lord 님이 플래그를 지정함

채택된 답변

Wan Ji
Wan Ji 2021년 8월 21일
Just do with the following
q = abs(yb);
p = (q==0|q==1|q==0.6|q==0.8);
xa = yb(~p)
if it does not work, use a tolerance TOL
TOL = 1e-5
q = abs(yb);
p = (q<=TOL|abs(q-1)<=TOL|abs(q-0.6)<=TOL|abs(q-0.8)<=TOL);
xa = yb(~p)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by