Overloading Numel
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 7 de Jun. de 2012
Looking around, I see examples in which people found it made sense to use numel within their subsref; see for example
http://www.mathworks.com/matlabcentral/answers/6764-overloading-subsref
Thomas Lai
el 7 de Jun. de 2012
Daniel Shub
el 8 de Jun. de 2012
The documentation seems pretty extensive. Can you provide some sample code.
Thomas Lai
el 11 de Jun. de 2012
Respuestas (0)
Categorías
Más información sobre Customize Object Indexing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!