怕翻译不准确了影响你的理解。
最笨的方法-------直接贴上来了哈。。:lol
IND2SUB Multiple subscripts from linear index.
IND2SUB is used to determine the equivalent subscript values
corresponding to a given single index into an array.
[I,J] = IND2SUB(SIZ,IND) returns the arrays I and J containing the
equivalent row and column subscripts corresponding to the index
matrix IND for a matrix of size SIZ.
For matrices, [I,J] = IND2SUB(SIZE(A),FIND(A>5)) returns the same
values as [I,J] = FIND(A>5).
[I1,I2,I3,...,In] = IND2SUB(SIZ,IND) returns N subscript arrays
I1,I2,..,In containing the equivalent N-D array subscripts
equivalent to IND for an array of size SIZ.
Class support for input IND:
float: double, single |