New to DSP. fvtool output different to parameters of filter exported from filter designer

1 次查看(过去 30 天)
Hi,
Im probably missing something obvious here. I've created a LPF using the filter designer as pictured and run the following code;
fvtool(HdL)
fvtool(HdL,'Analysis','impulse')
fvtool(HdL,'Analysis','freq')
Could anyone please explain the difference between the fvtool output and the filter designed and/or what I've done wrong?
Many Thanks

回答(1 个)

Nipun Katyal
Nipun Katyal 2020-7-16
Hi,
In order to visualize the frequency range for your filter you need to set the sampling frequency, otherwise it will use the default value of sampling frequency for fvtool, You can change the sampling frequency under the Analysis menu. In the drop down menu you will find Sampling frequency at the bottom. The defualt value is 1, you can change it to 48000 in your case and the frequency will be adjusted accordingly.

类别

Help CenterFile Exchange 中查找有关 Filter Design 的更多信息

产品


版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by