Adding 3rd dimensional array

10 views (last 30 days)
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.

Accepted Answer

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

More Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!