📄 smooth.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -