how to get filter coefficients after designing filter in FDA tool

8 次查看(过去 30 天)
Hello, I have designed a bandpass filter as suggested here as below
d = fdesign.bandpass('Fst1,Fp1,Fp2,Fst2,Ast1,Ap,Ast2',0.5,1,3,4,80,0.5,80,50);
Hd = design(d,'butter');
here but with fda toool and now I need only the filter coefficients as they will be used for designing filter microcontroller. I am confused with the two options available with the export
1)objects:results 'Hd' variables in the workspace
2)coefficients:results G,SOS variables in the workspace
Which one should I use and how to get and see only the original filters coefficients so that I can copy them into notepad.
Can anyone explain about this. Thanks.

回答(1 个)

Honglei Chen
Honglei Chen 2013-12-16
If you want the coefficients, you should use second option, "coefficients".
If you choose first option, you get a filter specified in Hd. You can perform the filtering operation by calling filter(Hd,x), but Hd itself is an object describing the filter. It is more than the mere filter coefficients.
HTH
  1 个评论
Stefan
Stefan 2013-12-17
编辑:Stefan 2013-12-17
Thanks and I guess the 'G' contains the actual coefficients that are needed from two variables G and SOS that are exported to the wokspace..

请先登录,再进行评论。

类别

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

产品

Community Treasure Hunt

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

Start Hunting!

Translated by