cat
Description
concatenates C= cat(dim,A,B)B to the end of A along the dimension
dim when A and B are
fi arrays with compatible sizes (the lengths of the dimensions match
except for the operating dimension dim). The concatenated result is a
fi object.
You can use the square bracket operator [] to concatenate or append
arrays. For example, [A,B] and [A B] concatenates
arrays A and B horizontally, and [A;
B] concatenates them vertically.
The fimath and numerictype objects of a concatenated matrix of fi objects
C are taken from the first input, A.
C = cat(
concatenates dim,A1,A2,…,An)A1, A2, … , An along
dimension dim, where A1,
A2,…,An are fi arrays.
The fimath and numerictype objects of a concatenated matrix of fi objects
C are taken from the leftmost fi object in the
list A1,A2,…An.
You can use comma-separated list syntax to concatenate a cell or structure array containing numeric arrays into a single array. For example,
cat(dim, D{:})whereDis a cell array where each cells contains a numeric array.cat(dim,D.field)whereDis a structure array and each element of the fieldfieldcontains a numeric array.
Examples
Input Arguments
Version History
Introduced in R2026a
See Also
horzcat | vertcat | fi | numerictype