This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Class: matlab.system.mixin.FiniteSource
Package: matlab.system.mixin

End-of-data flag


status = isDoneImpl(obj)


status = isDoneImpl(obj) specifies whether an the end of the data has been reached. The isDone method should return false when data from a finite source has been exhausted, typically by having read and output all data from the source. You should also define the result of future reads from an exhausted source in the isDoneImpl method.

isDoneImpl is called by the isDone method.

    Note:   You must set Access = protected for this method.

Input Arguments


System object™ handle

Output Arguments


Logical value, true or false, that indicates if an end-of-data condition has occurred or not, respectively.


expand all

Set up the isDoneImpl method in your class definition file so the isDone method checks whether the object has completed eight iterations.

methods (Access = protected)
   function bdone = isDoneImpl(obj)
      bdone = obj.NumIters==8;
Was this topic helpful?