[row, col] = ind2sub(sz, ind)
[I1, I2, ..., In] = ind2sub(sz, ind)
| Parameter | Description |
|---|---|
| sz | size of array: vector of positive integers. |
| ind | linear indices. |
| Parameter | Description |
|---|---|
| row | row subscripts. |
| col | column subscripts. |
| I1, I2, ..., In | multidimensional subscripts. |
ind2sub converts linear indices to subscript.
ind = [4 5 6 7];
sz = [4 4];
[row,col] = ind2sub(sz,ind)
| Version | Description |
|---|---|
| 1.0.0 | initial version |