您好,欢迎来到华佗小知识。
搜索
您的当前位置:首页hanming窗函数滤波器

hanming窗函数滤波器

来源:华佗小知识
function Hd = untitled-hanm

%UNTITLED-HANM Returns a discrete-time filter object. %

% M-File generated by MATLAB(R) 7.9 and the Signal Processing Toolbox 6.12. %

% Generated on: 08-Nov-2013 11:58:30 %

% FIR Window Bandpass filter designed using the FIR1 function.

% All frequency values are in Hz. Fs = 100; % Sampling Frequency

N = 100; % Order

Fc1 = 20; % First Cutoff Frequency Fc2 = 30; % 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 = fir1(N, [Fc1 Fc2]/(Fs/2), 'bandpass', win, flag); Hd = dfilt.dffir(b);

% [EOF]

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo0.cn 版权所有 湘ICP备2023017654号-2

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务