フィルターのクリア

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 Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by