MATLAB How Can I Time Shift a Signal in Matlab?

AI Thread Summary
To time shift a signal in MATLAB, the proposed method involves using the inverse Fast Fourier Transform (IFFT) and the Fast Fourier Transform (FFT) with a phase shift applied via an exponential function. However, the original approach using `ifft(fft(signal)*exp(2*i*pi*Fs*ts))` is not yielding the desired results. The discussion emphasizes the need to understand the symmetry properties of the FFT for proper implementation. An example is provided, illustrating the goal of shifting a cosine signal to align with a sine signal, specifically a phase shift of π/2. Clarification on the general case of time shifting using FFT is sought, highlighting the importance of mastering this technique in signal processing.
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
 

Similar threads

Replies
8
Views
2K
Replies
5
Views
2K
Replies
4
Views
2K
Replies
16
Views
14K
Replies
10
Views
3K
Replies
1
Views
2K
Replies
2
Views
2K
Replies
10
Views
3K
Back
Top