Logical indexing returns different dimensions
이전 댓글 표시
a = [3, 2]
b = [1; 1] == 1
a(b) % returns a 1x2 array
a = [3, 2; 4, 5]
b = [1; 1; 1; 1] == 1
a(b) % returns a 4x1 array
댓글 수: 1
Umesh Kumar Singla
2023년 1월 12일
편집: Umesh Kumar Singla
2023년 1월 12일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!