idc網(wǎng)站模板源碼下載怎么設(shè)置自己的網(wǎng)站
設(shè)計(jì)濾波器及導(dǎo)出系數(shù)
- 4KTO1K
- 2kto1k
- 系數(shù)解讀
- ab形式
- sos
- .h 頭文件
4KTO1K
1.matlab 命令窗口輸入: filterDesigner 打開濾波器設(shè)計(jì)工具
2.采用IIR butter 濾波器,指定階 Order=4 Fs=4000 ,F(xiàn)c=500
如下:
3.導(dǎo)出系數(shù)
(1) 導(dǎo)出頭文件: 菜單欄目標(biāo)–> 生成C頭文件 保存
(2)導(dǎo)出sos 系數(shù) : 文件-- 導(dǎo)出-- MAT-File 系數(shù)
(3)導(dǎo)出 ab
將sos 導(dǎo)出保存到工作區(qū),在工作區(qū)將sos sos2tf轉(zhuǎn)變?yōu)?a b 格式
a. 導(dǎo)出到工作區(qū)
b. 在命令行輸入:[b,a]=sos2tf(SOS,G)
c.保存 save(‘a(chǎn)b4kto1kbutter4order.mat’, ‘b’, ‘a(chǎn)’);
2kto1k
系數(shù)解讀
ab形式
def filter_lowpass(data,fs):