From 445417984b182ea1b24d77d2f81677e6f320a1ce Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 8 May 2012 00:06:16 +0200 Subject: Add frequency removal using fourier analysis --- fourier_frequency_removal.m | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 fourier_frequency_removal.m diff --git a/fourier_frequency_removal.m b/fourier_frequency_removal.m new file mode 100644 index 0000000..c2a378d --- /dev/null +++ b/fourier_frequency_removal.m @@ -0,0 +1,5 @@ +[p, q] = get_products(); + +A = fft(sum(q')); +A = A .* (1 - (abs(A) >5000) .* (abs(A) < 20000)); +plot(sum(q'), '-ob',real(ifft(A)),'-or'); -- cgit