classdef UnitDelayNondirect < matlab.System
% UnitDelayNondirect Delay input by one time stepproperties(DiscreteState)
State
endmethods(Access = protected)
function resetImpl(obj)
obj.State = 0; % Initialize statesendfunction y = outputImpl(obj, ~)
y = obj.State; % Output current stateendfunction updateImpl(obj,u)
obj.State = u; % Update state with inputendendend