summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-08 00:06:16 +0200
committerJan Klemkow <j.klemkow@wemelug.de>2012-05-08 00:06:16 +0200
commit445417984b182ea1b24d77d2f81677e6f320a1ce (patch)
tree4f86355e8b4061fbd5dee541d2c1cfa9ca3edc75
parentabd9eda6ccd803f854b54f316de705ff041ee12b (diff)
downloaddmc-445417984b182ea1b24d77d2f81677e6f320a1ce.tar.gz
dmc-445417984b182ea1b24d77d2f81677e6f320a1ce.tar.bz2
dmc-445417984b182ea1b24d77d2f81677e6f320a1ce.zip
Add frequency removal using fourier analysis
-rw-r--r--fourier_frequency_removal.m5
1 files changed, 5 insertions, 0 deletions
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');