Code Monkey home page Code Monkey logo

fft_filter's Introduction

図1

FFT_filter

Communication

Twitter

Language

MATLAB code for Low Pass Filter (LPF) and High Pass Filter (HPF) based on Fast Fourier Transform (FFT) 1.

Usage

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.

Source codes

  • FFT_filter_func.m: FFT fliter function.

  • demo.m: demonstration for FFT_filter_func.m.

Images

Input data example:

$f(t) = 4\cos( 2\pi t) + 2\cos( 2\pi 10t) + \sin( 2\pi 100t)$

  • Power spectrum of input data

untitled

  • 0-20Hz LPF: FFT_filter_func( data, [0 20], 1); 0-20_Hz

  • 0-5Hz LPF: FFT_filter_func( data, [0 5], 1); 0-5_Hz

  • 5- Hz HPF: FFT_filter_func( data, [5 Inf], 1); 5-Inf_Hz

References

Footnotes

  1. .

fft_filter's People

Contributors

krproject-tech avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.