利用Matlab filterDesigner 工具生成FIR滤波器函数,并调用实现低通滤波

Posted 毛毛虫的爹

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了利用Matlab filterDesigner 工具生成FIR滤波器函数,并调用实现低通滤波相关的知识,希望对你有一定的参考价值。

https://blog.csdn.net/luobluesky/article/details/89143608

function Hd = untitled
%UNTITLED Returns a discrete-time filter object.

% MATLAB Code
% Generated by MATLAB(R) 8.6 and the Signal Processing Toolbox 7.1.
% Generated on: 16-Nov-2021 15:19:48

% Butterworth Lowpass filter designed using FDESIGN.LOWPASS.

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

Fpass = 10;          % Passband Frequency
Fstop = 80;          % Stopband Frequency
Apass = 1;           % Passband Ripple (dB)
Astop = 60;          % Stopband Attenuation (dB)
match = 'stopband';  % Band to match exactly

% Construct an FDESIGN object and call its BUTTER method.
h  = fdesign.lowpass(Fpass, Fstop, Apass, Astop, Fs);
Hd = design(h, 'butter', 'MatchExactly', match);

% [EOF]

figure(1);
plot(ay(1:100860));
%hold on;
title('原始数据信号');
Hd = untitled
d = filter(Hd,ay);
d =d*(-9.8)+7.5;

figure(2);
plot(d(1:100860));
hold on;
plot(esp_lat(30:100890));
title('滤波数据信号');
legend('滤波ay * (-9.8)+7.5','esp_lat');


以上是关于利用Matlab filterDesigner 工具生成FIR滤波器函数,并调用实现低通滤波的主要内容,如果未能解决你的问题,请参考以下文章

IIR与FIR数字滤波器的介绍(8000+字)

如何在matlab simulink 加入滤波模块

如何用matlab实现fir低通滤波器

算法常用算法概览

基于Arnold置乱的数字水印图像加密算法的设计,基于Matlab语言编程,完成Arnold置乱算法,并用Matlab GUI工

利用微搭低代码实现工单系统