I am trying to make a variable time delay as part of a much
larger system. I need
y(k)=u(k-d)
where d is a control integer variable,u is the input and y is the
output.
I tried putting a WHILE loop within a FOR loop but have problems.
Any suggestions?
regards
Tom