status = isDoneImpl(obj)
specifies whether the end of the data has been reached.
status = isDoneImpl(
true 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 is called by the
Method Authoring Tips
You must set
Access = protected for this method.
obj — System object™
System object handle used to access properties, states, and methods specific to the object. If
isDoneImpl method does not use the object, you can replace this
status — End-of-data flag
false, that indicates if an
end-of-data condition has occurred or not.
Check for End-of-Data
Set up the
isDoneImpl method in
your class definition file so the
checks whether the object has completed eight iterations.
methods (Access = protected) function bdone = isDoneImpl(obj) bdone = obj.NumIters==8; end end