Deleting rows of a matrix based on values from another matrix
이전 댓글 표시
I have a m x 3 matrix A, and a nx1 matrix B. I need to remove those rows of A if either column 1 or 2 of the matrix equals any value in B.
채택된 답변
추가 답변 (1개)
Kritarth Sinha
2022년 7월 8일
편집: Kritarth Sinha
2022년 7월 8일
0 개 추천
Hello Hari,
You can simply use nested loops and for each value in column 1 or 2,you can check that is present in matrix B and do it accordingly.
Hope this will help.
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!