reshapemx (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: linalgebra

Requires: MathScript RT Module

Syntax

d = reshapemx(a, b, c)

d = reshapemx(a, [b, c])

Legacy Name: reshape

Description

Changes the dimensions of an input matrix.

Examples

Inputs

Name Description
a Specifies a vector or matrix of any data type. The number of elements in a must equal b*c.
b Specifies the number of rows in d. b is a positive integer.
c Specifies the number of columns in d. c is a positive integer.

Outputs

Name Description
d Returns a b-by-c matrix. The elements in d are the elements of a in column order.

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 Yes

Examples

A = [1, 2, 3; 4, 5, 6]
D = reshapemx(A, 3, 2)

文章是否对您有帮助?

没有帮助