Hi everyone,
I need to find official documentation / examples for overloading the builtin classdef 'end' method. I have an example in my code base which I got from somewhere a couple of years ago, but unfortunately I didn't document where I got the code from! Here's a correctly-working method from one of my classdefs:
methods function outIndex = end(obj,~,~) outIndex = obj.Nvalues; assert(outIndex>0,'Invalid use of method end() for empty vector'); endend
I'm looking for a URL or two please that documents what those two trailing arguments refer to..? I can't seem to locate anything via Google or the R2013a Help Window.
Thanks, Brad
Best Answer