How to add two 3-D matrices?

조회 수: 2 (최근 30일)
Ana Marie
Ana Marie 2020년 8월 12일
편집: Stephen23 2020년 8월 12일
I have two 3-D matrices of the following size:
Matrix1 = 80 x 95 x 45
Matrix2 = 80 x 95 x 90
I would like to add the matrices such that I end up with 80 x 95 x 135. In other words, for every third dimension, I want to add the numbers in 80 x 95 over and over again until I combine the two matrices to get 80 x 95 x 135. Could someone please let me know how to do this?
Thank you in advance.

채택된 답변

Stephen23
Stephen23 2020년 8월 12일
편집: Stephen23 2020년 8월 12일
  댓글 수: 1
Ana Marie
Ana Marie 2020년 8월 12일
Thanks Stephen !!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by