Overloading Numel

조회 수: 15 (최근 30일)
Thomas Lai
Thomas Lai 2012년 6월 7일
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
Daniel Shub
Daniel Shub 2012년 6월 8일
The documentation seems pretty extensive. Can you provide some sample code.
Thomas Lai
Thomas Lai 2012년 6월 11일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Customize Object Indexing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by