MATLAB: What to use instead of horzcat for N-D Arrays

horzcatMATLABmultidimensional

Hello.
I have a 3D array (let's say 3 x 4 x 100, call it AA) and want to add zeros to the end of the long dimension (let's say to get it to 3 x 4 x 200, adding on BB that is also 3 x 4 x 100 with zeros). horzcat() isn't happy, and [AA BB] won't do it.
Suggestions? Thanks!
Doug Anderson

Best Answer

AA(end,end,200) = 0;