| MATLAB Function Reference | Search  Help Desk |
| subsindex | See Also |
i = subsindex(A)
i = subsindex(A)
is called for the syntax 'X(A)' when A is an object. subsindex must return the value of the object as a zero-based integer index (i must contain integer values in the range 0 to prod(size(X))-1). subsindex is called by the default subsref and subsasgn functions, and you can call it if you overload these functions.
subsasgn Overloaded method for A(i)=B, A{i}=B, and A.field=B
subsref Overloaded method for A(i), A{i} and A.field