MATLAB Delay an Input Signal

76 views Asked by At

I have the following input signal:

u = @ (t) cos(5*t)*sin(2*t)

What is the best way to delay this signal for a certain amount of time,k, in seconds without using any prebuilt MATLAB functions?

1

There are 1 answers

3
sab0 On BEST ANSWER

You can substitute t with (t - k).

I suppose the unit of t is in seconds [s]. If so just do something like:

k = 5;
u = @ (t) cos(5*(t - k))sin(2*(t - k));

This moves the signal to the "right" by k = 5 seconds, meaning it will be delayed.

I hope that was what you meant?