Overloading Numel
显示 更早的评论
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 个评论
Walter Roberson
2012-6-7
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
2012-6-7
Daniel Shub
2012-6-8
The documentation seems pretty extensive. Can you provide some sample code.
Thomas Lai
2012-6-11
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Customize Object Indexing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!