Biquad with external coefficient

7 ビュー (過去 30 日間)
Angelo
Angelo 2025 年 4 月 12 日
回答済み: Manikanta Aditya 2025 年 4 月 12 日
I'm using biquad function but I need to make the filter varying during my simulation so I would like to pass 'sos' and 'g' parameters as input rather than through the mask. Is there any way of doing it? Thanks

回答 (1 件)

Manikanta Aditya
Manikanta Aditya 2025 年 4 月 12 日
Yes, you can pass the 'sos' and 'g' parameters as inputs to the Biquad Filter block in Simulink to make the filter vary during your simulation.
Here's how you can do it:
  • Navigate to the Biquad Filter block in Simulink under [DSP System Toolbox / Filtering / Filter Implementations].
  • Set the Coefficient source parameter to Input port(s). This allows you to pass the filter coefficients through input ports.
  • Set the Scale values mode to Specify via input port (g). This enables you to pass the scale values through an input port.
  • Connect your sos matrix to the input port designated for the numerator coefficients.Connect your g values to the input port designated for the scale values.
  • Run your simulation with the varying 'sos' and 'g' parameters as inputs. This setup allows the filter coefficients to change dynamically during the simulation .
For more detailed guidance, refer to the Biquad Filter
I hope this helps.

カテゴリ

Help Center および File ExchangeBlock Libraries についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by