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

flatindex (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info
Download Help (Windows Only)

Owning Class: support

Requires: MathScript RT Module


c = flatindex(size, a, b)

Legacy Name: sub2ind


Computes the linear position of pairs of a matrix.



Name Description
size Specifies the size of a matrix. size is a two-element vector of integers.
a Specifies the first indexes. a is a matrix of integers.
b Specifies the second indexes. b is a matrix of integers of the same size as a.


Name Description
c Returns the linear position of all pairs (a, b) of a matrix with the specified size. c is a matrix of the same size as a.


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


A = [1, 2, 3]
B = [1, 2, 3]
SIZE = [3, 3]
C = flatindex(SIZE, A, B)

Related Topics



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