You can construct matrices, or even multidimensional arrays, using concatenation as long as the resulting matrix does not have an irregular shape.
If you are building a matrix horizontally, then each component matrix must have the same number of rows.
When building vertically, each component must have the same number of columns.

网友评论