From 4b03c7b923be3b7a7ac2568f0d4695a3cceabd56 Mon Sep 17 00:00:00 2001 From: bma Date: Wed, 30 May 2018 08:48:16 +0200 Subject: [PATCH] add highpass cutoff freq arg --- fftplot.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fftplot.m b/fftplot.m index 8f27f9a..cdd562e 100755 --- a/fftplot.m +++ b/fftplot.m @@ -4,8 +4,9 @@ filename = argv(){1}; col = eval(argv(){2}); mult = eval(argv(){3}); data.fs = eval(argv(){4}); +f_hp = eval(argv(){5}); -[b, a] = butter (3, data.fs/1000, "high"); +[b, a] = butter (3, f_hp, "high"); if length(col) == length(mult) figure -- 2.16.4