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

reshape (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

d = reshape(a, b, c)

Description

Changes the dimensions of an input matrix.

Examples

Inputs

Name Description
a Specifies a matrix. 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.

Examples

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


Resources


 

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