Finite source mixin class
matlab.system.mixin.FiniteSource is a class that defines the isDone method, which reports the state of a finite data source, such as an audio file.
To use this method, you must subclass from this class in addition to the matlab.System base class. Type the following syntax as the first line of your class definition file, where ObjectName is the name of your object:
classdef ObjectName < matlab.System &... matlab.system.mixin.FiniteSource