Adding 3rd dimensional array

7 vues (au cours des 30 derniers jours)
Haa Andrew
Haa Andrew le 21 Sep 2017
I have same data in two matrices A=50x60x100 and B=50x60x80. I want to add third array to combine them in one matrix like C=50x60x180. How can add them? Thanks in advance.

Réponse acceptée

Walter Roberson
Walter Roberson le 21 Sep 2017
C = cat(3, A, B);

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices 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