Owning Class: support
Requires: MathScript RT Module
[c, d] = ind_to_sub(size, a)
Converts the linear indexes of matrix elements to their row-column positions.
|size||Specifies the size of a matrix. size is a two-element vector of integers.|
|a||Specifies the linear positions of elements in a matrix of the size you specify. a is a matrix of integers.|
|c||Returns the row numbers of the elements with linear positions a. c is a matrix of integers of the same size as a.|
|d||Returns the column numbers of the elements with linear positions a. d is a matrix of integers 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; 4, 5, 6]
SIZE = size(A)
[C, D] = ind_to_sub(SIZE, A)