3D matrix pattern matching
조회 수: 4 (최근 30일)
이전 댓글 표시
Find which row of 3d matrix matches an array along the third dimension. For ex:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/623298/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/623298/image.png)
I want to find [1 0 0] along 3rd dimension of Zb, so here Zb(4,1,:) , Zb(5,4,:) and some others match [1, 0, 0]. How to know if the match occurs (for any random value of 3rd dimension of matrix) and if so, what are the row, column indices? Also, can this be done without for loop?
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!