Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

cat

Class: matlab.mixin.Heterogeneous
Package: matlab.mixin

Concatenation for heterogeneous arrays

Syntax

C = cat(dim,A,B)

Description

C = cat(dim,A,B) concatenates objects A and B along the dimension dim. The class of object arrays A and B must be derived from the same root class of a matlab.mixin.Heterogeneous hierarchy.

  • If A and B are of the same class, the class of the resulting array is unchanged.

  • If A and B are of different subclasses of a common superclass that is derived from matlab.mixin.Heterogeneous, then the result is a heterogeneous array and the array's class is that of the most specific superclass shared by A and B.

The cat method is sealed in the class matlab.mixin.Heterogeneous and, therefore, you cannot override it in subclasses.

Input Arguments

dim

Scalar dimension along which to concatenate arrays

A

Object array derived from the same root subclass of matlab.mixin.Heterogeneous as B

B

Object array derived from the same root subclass of matlab.mixin.Heterogeneous as A

Output Arguments

C

Array resulting from the specified concatenation. The class of this array is that of the most specific superclass shared by A and B.

Attributes

Sealedtrue

To learn about attributes of methods, see Method Attributes in the MATLAB® Object-Oriented Programming documentation.

Was this topic helpful?