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)