Deleting Some Specific Entries from a vector
Info
This question is locked. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
I have vectors xa and yb. I want to write the entries of yb to xa which are not the ones -1,0,1,0.6,-0.6,0.8,-0.8
I apply this one
xa=yb(yb~=1);
xa=xa(xa~=-1);
xa=xa(xa~=0);
xa=xa(xa~=0.6);
xa=xa(xa~=-0.6);
xa=xa(xa~=-0.8);
xa=xa(xa~=0.8);
But it just deletes -1,0 and 1. Not 0.6,-0.6,0.8,-0.8. Where do you think the problem is? Or how can I change it?
1 Kommentar
Rena Berman
am 30 Jul. 2024
(Answers Dev) Restored edit
Akzeptierte Antwort
Weitere Antworten (0)
This question is locked.
Kategorien
Mehr zu MATLAB Coder finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!