当前位置:网站首页>Filter in MATLAB
Filter in MATLAB
2022-07-23 10:56:00 【Qingshui a monk】
stay matlab When we need to generate a filter , have access to matlab Tools included in the .
stay matlab Input in the command window filterDesigner, The following window appears .


Here, you can design the filter you need according to your needs .
After designing the filter, if we want to use our filter in a functional way , Then we can save the designed filter as a function .

Save it to the directory where we need to use the filter , You can use filters like functions .

When using filters :
h=lowpass_filter;
yy=filter(h,y);You can get the filtered signal .
If we want to save the parameters of the filter :


It can be saved in the desired format as needed

for example , We save the parameters of the filter as mat file , If we need to use filters in the program , So first of all mat File import , And then assign a value .
load coef_lpf.mat;
h=Num;% there Num Is the name of the call parameter in the above , It is recommended to use the same name as the filter
Introduce several kinds of matlab Frequently used functions
filter One dimensional filter .
In the form of :y=filter(b,a,x)
this MATLAB function Use the numerator and denominator coefficients b and a Defined rational transfer function For input data x Filtering .
firls: Least squares linear phase FIR Filter design .firls A linear phase is designed FIR filter , The filter can minimize the weighted integral square error between the ideal piecewise linear function and the amplitude response of the filter in a set of required frequency bands .
b=firls(n,f,a)
for example :
h=firls(N,[0,0.2,0.25,1],[1,1,0,0]);% Design filters
fvtool(h)% Display filter 
The transition zone is located in 0.2
and
Between .
边栏推荐
- 【Unity日常Bug】Unity报错Unexpected character ‘‘
- 3DMAX first skin brush weights, then attach merge
- Important knowledge of application layer (interview, reexamination, term end)
- Basic knowledge of C language (I)
- C语言n番战--结构体(七)
- 阿里云对象存储服务OSS前后联调
- Warning lnk4210 reports an error when writing the driver
- C ivalueconverter interface usage example
- 【社媒营销】出海新思路:Whatsapp Business替代Facebook
- 软件测试基本概念篇
猜你喜欢

MySQL log understanding

C语言n番战--结构体(七)

第12届 蓝桥杯 嵌入式设计与开发项目

UNITY VFX syntax error: unexpected token ‘#‘ at kernel CSMain

单点登录-认证服务器与客户端的session过期时间如何统一

Redis source code and design analysis -- 5. Integer set

C语言n番战--链表(九)

Redis源码与设计剖析 -- 9.字符串对象

软件测试基础篇—测试用例的设计方法

Exciting metauniverse! Wealth outlet of next generation Internet
随机推荐
数据库进程卡住解决
The wave of the meta universe is shocking. Seize the opportunity and work together
Anaconda虚拟环境下安装opencv报错的问题
Redis源码与设计剖析 -- 7.快速列表
Comprehensive experiment of realizing private network interworking under mGRE environment
C語言基礎知識梳理(一)
52832Dongle的安装
TS type gymnastics intermediate type gymnastics challenge closing battle
What does resource pooling and resource pooling mean?
Jump statement and debugger
微信小程序封装wx.request
Redis source code and design analysis -- 12. Collection objects
R language uses DALEX package to explain and analyze the machine learning model built by H2O package: summary and Practice
又更新了, IDEA 2022.2 正式发布
Wechat applet package wx.request
Redis源码与设计剖析 -- 13.有序集合对象
Redis source code and design analysis -- 11. Hash object
C语言基础知识梳理(一)
PMP practice once a day | don't get lost in the exam -7.22
Important knowledge of application layer (interview, reexamination, term end)