Concatenate heterogeneous arrays
C = cat(dim,A1,A2,...,An)
C = cat(
concatenates two or more heterogeneous arrays (
and so on) along the dimension
dim to form the array
The input arrays must be derived from the same root class of a
If the input arrays are of the same class, the class of the concatenated array is also the same.
If the input arrays are of different subclasses of a common superclass that is derived from
matlab.mixin.Heterogeneous, then the result is a heterogeneous array. The class of the array is the most specific superclass shared by the input arrays.
If all input arguments are not members of the same heterogeneous hierarchy, MATLAB® calls the
convertObjectsmethod, if defined by the dominant root class (the first argument or the leftmost element in the concatenation if no other class is dominant). For more information, see Converting Nonmember Objects.
dim — Dimension along which to concatenate arrays
scalar positive integer
Dimension along which to concatenate arrays, specified as a scalar positive integer.
A1,A2,…,An — Object arrays to concatenate
Object arrays to concatenate. The input arrays must be derived from the same root
class of a
To learn about attributes of methods, see Method Attributes.
Introduced in R2011a