Member of the support class.
[c, d] = ind2sub(size, a)
Converts the linear indexes of matrix elements to their row-column positions.
| Name | Description |
| 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. |
| Name | Description |
| 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. |
A = [1, 2, 3; 4, 5, 6]
SIZE = size(A)
[C, D] = ind2sub(SIZE, A)