obj.NumSteps = obj.NumSteps + 1;
y = obj.NumSteps;
else
y = 0;
end
end
function bDone = isDoneImpl(obj)
bDone = obj.NumSteps==2;
end
end
end
See Also
matlab.system.mixin.FiniteSource
More About
- “Subclassing Multiple Classes”
- “Using ~ as an Input Argument in Method Definitions” on page 34-66
See Also