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

Owning Class: support

Requires: MathScript RT Module

Syntax

c = flatindex(size, a, b)

Legacy Name: sub2ind

Description

Computes the linear position of pairs of a matrix.

Examples

Inputs

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.

Outputs

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.

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]
B = [1, 2, 3]
SIZE = [3, 3]
C = flatindex(SIZE, A, B)

Related Topics

ind_to_sub


 

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