Combining two matrices with different sizes
이전 댓글 표시
I have two matrices: M1(176x2x7) double and M2(369x2x27). The 176 column is 250:600 (interval of 2) and the 369 column is 230:598 (interval of 1). I would like the M1 to replace M2 (: , : ,1:7) and make sure the data is 0 for the odd numbers after the replacement for (: , : ,1:7). Could anyone please tell me how to do it.
Thank you very much!
댓글 수: 6
David Hill
2022년 5월 19일
Replacement requires 5166 elements, M1 only has 2464 elements. How do you want to come up with the other elements?
Jan
2022년 5월 19일
What does this mean: "The 176 column is 250:600 (interval of 2)"?
Cheuk Yin Wong
2022년 5월 19일
Cheuk Yin Wong
2022년 5월 19일
David Hill
2022년 5월 19일
A simple example would be helpful. What about the other columns? Are all the 1st columns of M1 in the 3rd dimension the same? (250:2:600)'
Cheuk Yin Wong
2022년 5월 22일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Argument Definitions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!