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

 채택된 답변

Simon Chan
Simon Chan 2022년 6월 16일

1 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2022년 6월 16일

답변:

2022년 6월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by