Description Usage Arguments Value
Takes a vector of integers (1D linear indexed) and converts them to matrix
subscripts in n-dimensional matrix. Modeled after MATLAB's ind2sub()
1 | ind2subs(ind, dims)
|
ind |
An integer vector with linear indexes |
dims |
An n-dimensional integer vector. Each element of this vector indicates the size of the corresponding dimension in the n-dimensional matrixc. |
A list of n lists of equal length. Each list corresponds to one of the n dimensions of the matrix. Rows indicate subscripts. Suitable for use with mapping functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.