Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Noisy fft
Replies: 2   Last Post: Jan 31, 2013 2:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Peter Mairhofer

Posts: 38
Registered: 8/18/10
Noisy fft
Posted: Jan 30, 2013 11:41 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

I create a signal x, let it through an FIR filter to create y. Then I
divide the spectra and I should obtain the frequency response of the
filter. However, what I get is very/noo noisy:
http://snag.gy/7Quwn.jpg

The code is:
N = 1000;
h_orig = [1 0.75 0.5];
H_orig = fft([h_orig.' ; zeros(N-length(h_orig), 1)]);
x = randn(N, 1);
y = filter(h_orig, 1, x);
H = fft(y) ./ fft(x);
plot(abs([H_orig, H]));

Can someone explain this?

Thanks,
Peter


Date Subject Author
1/30/13
Read Noisy fft
Peter Mairhofer
1/31/13
Read Re: Noisy fft
dbd
1/31/13
Read Re: Noisy fft
Bruno Luong

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.