ind2sub
Linear index to matrix subscript values
Syntax
[row, col] = ind2sub(sz, ind)
[I1, I2, ..., In] = ind2sub(sz, ind)
Input argument
sz - size of array: vector of positive integers.
ind - linear indices.
Output argument
row - row subscripts.
col - column subscripts.
I1, I2, ..., In - multidimensional subscripts.
Description
ind2sub converts linear indices to subscript.
Example
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated