Effacer les filtres
Effacer les filtres

How to add two 3-D matrices?

3 vues (au cours des 30 derniers jours)
Ana Marie
Ana Marie le 12 Août 2020
Modifié(e) : Stephen23 le 12 Août 2020
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.

Réponse acceptée

Stephen23
Stephen23 le 12 Août 2020
Modifié(e) : Stephen23 le 12 Août 2020
  1 commentaire
Ana Marie
Ana Marie le 12 Août 2020
Thanks Stephen !!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by