%% 3-D Arrays
% Create two 3-D arrays and concatenate them along the third dimension. The lengths of the first and second dimensions in the resulting array matches the corresponding lengths in the input arrays, while the third dimension expands.

A = rand(2,3,4);
B = rand(2,3,5);
C = cat(3,A,B);
szC = size(C)

% Copyright 2018 The MathWorks, Inc.