The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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: 41
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


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:

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?


Date Subject Author
Read Noisy fft
Peter Mairhofer
Read Re: Noisy fft
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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.