How do I access phase information of a simulink bandpass filter?

1 vue (au cours des 30 derniers jours)
Mathias Gehrig
Mathias Gehrig le 7 Avr 2015
I have to implement a bandpass filter in Simulink. The Filter Design Toolbox (now DSP System Toolbox) offers a GUI to do this but I must access phase and possibly magnitude of the filter for my project. Could I implement the Filter in MATLAB and export it somehow to Simulink or is there another way to solve this problem? I am using version 2009b.

Réponse acceptée

Mathias Gehrig
Mathias Gehrig le 8 Avr 2015
Modifié(e) : Mathias Gehrig le 8 Avr 2015
I realized that Simulink offers the option to import a digital filter object from MATLAB by using the digital filter block in Simulink->Signal Processing Blockset->Filtering->Filter Designs->Digital Filter (version 2009b). Now I can design the filter in MATLAB and access all the information conveniently.

Plus de réponses (1)

ashish ahir
ashish ahir le 8 Avr 2015
" I must access phase and possibly magnitude of the filter for my project." In digital filter block how you will access phase?
  1 commentaire
Mathias Gehrig
Mathias Gehrig le 8 Avr 2015
Modifié(e) : Mathias Gehrig le 8 Avr 2015
I think that this is not possible. However, you can circumvent this problem by creating a filter object in MATLAB and import this object via the Digital Filter block of Simulink as described in my answer. By doing that, you can extract properties (such as phase and magnitude response) in MATLAB and use it in Simulink as well. This works for simple filters and might not work for adaptive or more complicated filters. That is because with this method you extract properties of the filter before the Simulink simulation starts.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Filter Design and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by