Discrete Fourier Transform Low/High Pass Filter.

This is a simply implement of Discrete Fourier Transform Low/High Pass Filter for 1-D data.
1.4K Downloads
Updated 17 Apr 2011

View License

% function [g] = FFTPF1D (X,binsize, f, P)
% Discrete Fourier Transform Low/High Pass Filter.
% This is a simply implement of such a filter for a given 1-D data.
% X: the array of you data, each data point is a bin of signal
% binsize: the bin size in your data data
% f: the cutoff of wave length,
% P: 1, or 0, true or false : true, low pass, which eliminating higher
% than f frequence signals, false, high pass, which eliminating lower
% than f frequence signals.
% It could be easily modified into 2-D version, or translated into
% R/S-language.
% Example:
% a=1:2:1000;
% b=sin(a) + sin(2.*a) + sin(0.1 .* a) + ...
% c=FFTPF1D(b, 2, 10, 1)
% Author: Zhihua Zhang. invokey@gmail.com
% Feel free to use and distribute this code for training or
% academic propose.

Cite As

Zhihua Zhang (2024). Discrete Fourier Transform Low/High Pass Filter. (https://www.mathworks.com/matlabcentral/fileexchange/31076-discrete-fourier-transform-low-high-pass-filter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0