MATLAB Function Reference
  Go to function:
    Search    Help Desk 
subsindex    See Also

Overloaded method for X(A)

Syntax

Description

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.

See Also

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



[ Previous | Help Desk | Next ]