cat
Class: matlab.mixin.Heterogeneous
Namespace: matlab.mixin
Concatenate heterogeneous arrays
Syntax
C = cat(dim,A1,A2,...,An)
Description
C = cat(
concatenates two or more heterogeneous arrays (dim,A1,A2,...,An)A1, A2,
and so on) of the same hierarchy along the dimension dim to form the array
C. The input arrays must be derived from the same root class of a matlab.mixin.Heterogeneous hierarchy.
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.
Input Arguments
Version History
Introduced in R2011a