zero phase spectrum and filtfilt function
显示 更早的评论
Fs = 1; % Sampling Frequency
N = 50; % Order
Fc1 = 1/f1;%7s % First Cutoff Frequency
Fc2 = 1/f2; % Second Cutoff Frequency
flag = 'scale'; % Sampling Flag
% Create the window vector for the design algorithm.
win = hamming(N+1);
% Calculate the coefficients using the FIR1 function.
[b,a] = fir1(N, [Fc1 Fc2]/(Fs/2), 'bandpass', win, flag);
% Hd = dfilt.dffir(b);
out=filtfilt(b,a,data);
if using filter function ,we can get spectrum and phase using fvtool , while using filtfilt , how can i get the two lines?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Digital Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!