How Can I Time Shift a Signal in Matlab?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 19K views
Shaddyab
Messages
19
Reaction score
0
Hi!

How can I time shift (ts) a real signal (N samples, T time period, dt
sample rate, Fs sampling frequency) using matlab:

Timeshift signal = ifft (fft(signal)*exp(2*i*pi*Fs*ts)) ?
I am trying to do it this way and it is not working?

For example how would you shift a Cos signal to fit on a Sin signal ( Phase shift of pi/2 or time shift of ts)

Thanks.
 
Physics news on Phys.org
the 'sin' 'cos' was only an example, I am talking about general case.
I need to know how to do it with FFT, i know that it has something to do with the symmetry of the transformation, i just do not know how to do it.

Thanks