Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

cat (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: linalgebra

Requires: MathScript RT Module

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 vconcatmx(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 hconcatmx(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.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

A = [1, 2; 3, 4]
B = [5, 6; 7, 8]
C = cat(2, A, B)

Related Topics

hconcatmx
vconcatmx


 

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