Member of the linalgebra class.
Syntax
c = cat(d, a, b, ...)
Description
Concatenates matrices. You can specify an unlimited number of input matrices.
Examples
Inputs
| Name |
Description |
| d |
Specifies the format in which LabVIEW concatenates the input matrices. d is an integer that accepts the following values.
| 1 |
Concatenates a and b using the following equation: cat(1, a, b, ...) = [a; b; ...]. cat(1, a, b, ...) is equivalent to vertcat(a, b, ...). a and b must have the same number of columns. |
| 2 |
Concatenates a and b according to the following equation: cat(2, a, b, ...) = [a, b, ...]. cat(2, a, b, ...) is equivalent to horzcat(a, b, ...). a and b must have the same number of rows. |
|
| a |
Specifies a matrix. |
| b |
Specifies a matrix. |
Outputs
| Name |
Description |
| c |
Returns the concatenated matrix. |
Examples
A = [1, 2; 3, 4]
B = [5, 6; 7, 8]
C = cat(2, A, B)
Related Topics
horzcat
vertcat