Convert object to array index
ind = subsindex(A)
subsindex to convert
an object into an integer index. Define a
for your class if you want to use objects of the class as array indices.
ind = subsindex(A) called by MATLAB for the expression
A is an
subsindex must return the value of the object as a
zero-based integer index.
ind must contain integer values in the
on all the subscripts in an expression, such as
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
This function fully supports distributed arrays. For more information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).