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