Concatenate three-dimensional matrices

44 visualizaciones (últimos 30 días)
Sergio Orasch
Sergio Orasch el 16 de Jun. de 2022
Respondida: Simon Chan el 16 de Jun. de 2022
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

Respuesta aceptada

Simon Chan
Simon Chan el 16 de Jun. de 2022
This is the third dimension, hence cat(3,A,B)

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by