Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Complex FFT - MATLAB implementation problems

Status
Not open for further replies.

pepe100

Newbie level 1
Newbie level 1
Joined
Sep 1, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
11
Hello,
I implemented complex FFT in MATLAB, as described in the book "The Scientist and Engineer's Guide to Digital Signal Processing" by S. Smith.
My implementation generally seems to work, however there are some problems I can't resolve.
I am testing my implementation it with a sinusoidal signal and compare the results with the MATLAB built-in function fft(), then I am using ifft() to reconstruct the signal. The effects I see are:
- using 4 Hz sinusoidal signal, it seems the reconstructed signal has some phase shift which I cannot explain;
- using 50 Hz and 300 Hz signals - the spectrum seems fine;
- when using 250 Hz signal the spectrum seems incorrect in a way I cannot explain.
Please, suggest where to search for the problem and how to track it... it could be something I am missing from the theory, or just something I didn't consider in using MATLAB... attached are reference images...
Thanks in advance
 

Attachments

  • 004.JPG
    004.JPG
    62.9 KB · Views: 138
  • 001.JPG
    001.JPG
    110.3 KB · Views: 140
  • 002.JPG
    002.JPG
    95.3 KB · Views: 137
  • 003.JPG
    003.JPG
    99.6 KB · Views: 132

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top