Clear Filters
Clear Filters

Overloading Numel

1 view (last 30 days)
Thomas Lai
Thomas Lai on 7 Jun 2012
I have a need to overload numel for a data container class that i'm building. However it seems to break the overloaded subsref method because apparently subsref is calling numel (invisibly too, for all the breakpoints that i put in my overloaded numel never got triggered when calling subsref).
Please provide a more comprehensive documentation in overloading numel properly for custom object classes and how it is called with respect to subsref.
  4 Comments
Daniel Shub
Daniel Shub on 8 Jun 2012
The documentation seems pretty extensive. Can you provide some sample code.
Thomas Lai
Thomas Lai on 11 Jun 2012
I did not have a numel function because I did not know how to implement it in such a way as to provide the correct nargout values for subsref.

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!