Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

cat (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

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


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit