Deleting Some Specific Entries from a vector
정보
This question is locked. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
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
Rena Berman
2024년 7월 30일
(Answers Dev) Restored edit
채택된 답변
추가 답변 (0개)
This question is locked.
카테고리
도움말 센터 및 File Exchange에서 MATLAB Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!