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

flatindex (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: 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



 Was this document helpful?  submit
  Helpful Not Helpful