Deleting Some Specific Entries from a vector
18 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mücahit Özalp
am 21 Aug. 2021
Bearbeitet: Mücahit Özalp
am 13 Jul. 2024 um 20:48
Diese(r) Frage wurde durch Steven Lord
markiert
0 Kommentare
Akzeptierte Antwort
Wan Ji
am 21 Aug. 2021
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!