smooth.m

来自「Toolbox for biomedical signal processing」· M 代码 · 共 36 行

M
36
字号
function [y,n] = Smooth(x,wlpa,tpa,cfa,pfa)%Smooth: Smoothing filter (lowpass)%%   [y,n] = Smooth(x,wlp,tp,cf,pf)%%   x     Input signal          %   wlp   Normalized cutoff frecuency 0.0 < wlp < 1.0, with 1.0 %         correponding to half the sampe rate. Default = 0.5 %   tp    Type: 1=Elliptic (default), 2=Butterworth, %         3=FIR based on Blackman Window, 4=Minimun Ringing%   cf    Causality flag: 1 = causal, 2 = noncausal (default) for tp=1,2%   pf    Plot format. 0=none (default), 1=screen%%   y     Filtered Signal%   n     Order of the filter%%   Filters the input signal x with a normalized cutoff frequency %   wlp. The lowpass filter can be causal or noncausal. The causal %   implementation usesonly the present and previous values to determine%   the filter's output y, and therefore it is physically realizable for%   real time processing. The noncausal implementation filters the data %   in the forward direction, and the filtered sequence is then reversed%   and run back through the filter; Y is the time reverse of the output%   of the second filtering operation.  The result has precisely zero %   phase distortion and magnitude modified by the square of the %   filter's magnitude response.     %%   Example: Smooth the ICP waveform:%%      load ICP; %      [y,n] = Smooth(icp,0.25,1,2,1);%%   Version 1.00 MA%%   See also Lowpass, HighPass, filter, filtfilt, ellip, and butter.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?