Communication
Language
MATLAB code for Low Pass Filter (LPF) and High Pass Filter (HPF) based on Fast Fourier Transform (FFT) 1.
filtered_data = FFT_filter_func( raw_data, [f_min f_max], plot_flag);
where
raw_data = [ time_vec data_vec]
: time data time_vec
[s] and time series of raw data data_vec
[a.u.].
[f_min f_max]
: bandpass [Hz].
plot_flag
: When the argument is present, the FFT spectrum is plotted.
-
FFT_filter_func.m: FFT fliter function.
-
demo.m: demonstration for FFT_filter_func.m.
Input data example:
- Power spectrum of input data
Footnotes
-
. ↩