How to repeat the condition for two matrices having different sizes?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have two matrices of two different sizes A (61 x 61 x 1085) & B (61 x 61 x 31)
I apply my conditions to first A(61 x 61 x 31) until it reaches to the size of B.
Now I want to repeat the same conditions for next A (61 x 61 x 32:62) until it reaches to the size of B....and so on...upto A(61 x 61 x 1085).
Anyone, thanks in advance.
댓글 수: 5
채택된 답변
Andrei Bobrov
2019년 4월 25일
편집: Andrei Bobrov
2019년 4월 26일
I edited the answer.
out = A > B(:,:,mod(0:size(A,3)-1,size(B,3))+1);
댓글 수: 3
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!