How Can I Time Shift a Signal in Matlab?

Click For Summary
SUMMARY

The discussion focuses on time shifting a real signal in MATLAB using the Fast Fourier Transform (FFT) technique. The user inquires about the correct implementation of time shifting a signal by applying the inverse FFT (ifft) to the product of the FFT of the signal and an exponential term involving the sampling frequency (Fs) and time shift (ts). The user seeks clarification on how to achieve a phase shift, specifically a pi/2 shift, and acknowledges the importance of understanding the symmetry of the FFT transformation in this process.

PREREQUISITES
  • Understanding of MATLAB programming environment
  • Familiarity with Fast Fourier Transform (FFT) and Inverse Fast Fourier Transform (IFFT)
  • Knowledge of signal processing concepts, particularly time and phase shifting
  • Basic understanding of complex numbers and exponential functions
NEXT STEPS
  • Research the implementation of FFT and IFFT in MATLAB
  • Learn about the mathematical principles of time shifting and phase shifting in signal processing
  • Explore examples of time shifting signals using MATLAB's FFT functions
  • Investigate the effects of different sampling frequencies (Fs) on signal transformation
USEFUL FOR

This discussion is beneficial for signal processing engineers, MATLAB users, and anyone involved in manipulating and analyzing signals using Fourier transforms.

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 ·
Replies
8
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 16 ·
Replies
16
Views
15K
  • · Replies 10 ·
Replies
10
Views
4K
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K