Discrete Fourier Transform Low/High Pass Filter.
% 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
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Transforms > Discrete Fourier and Cosine Transforms >
Tags
Acknowledgements
Inspired: DEMONSTRATION FOR FOURIER TRANSFORM OF DISCRETE TIME SIGNAL
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
FFTPF1D/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |