Adding 3rd dimensional array

7 visualizzazioni (ultimi 30 giorni)
Haa Andrew
Haa Andrew il 21 Set 2017
Risposto: Walter Roberson il 21 Set 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.

Risposta accettata

Walter Roberson
Walter Roberson il 21 Set 2017
C = cat(3, A, B);

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by