compare 1D array with rows of 2D matrix
이전 댓글 표시
how to compare entries of 1D array with rows of 2D matrix. entries of 1D array are the row number of 2D matrix. after comparing we write the corresponding column value of that row and if the row number gets repeat in 1D array then we move to next column value of same row and it goes on.I need help with code
답변 (2개)
KSSV
2018년 9월 25일
0 개 추천
Read about ismember
댓글 수: 3
Muhammad Sohail Abid
2018년 9월 25일
KSSV
2018년 9월 25일
logical indexing is powerful and very fast...o get the position/ index use find.
Muhammad Sohail Abid
2018년 9월 28일
write similarities and dissimilarities between 1d and 2d array in matlab.
카테고리
도움말 센터 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!