Concatenate three-dimensional matrices

Hello,
I need to concatenate two three-dimensional matrices, however I cannot come up with the required dimensions.
% input
A = [2x2x6]
B = [2x2x4]
% C -> concatenation of A and B
C = [2x2x10] -> required dimensions
cat(1,A,B) does not work for this purpose, does anyone have an idea? Thanks

 采纳的回答

This is the third dimension, hence cat(3,A,B)

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

产品

版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by