How to design analog filter in Simulink which can be used for C code generation?

조회 수: 4 (최근 30일)
I want to simulate analog filter in Simulink and then generate C code out of it. I tried designing it usingnvarious filter design options but could not achieve it.
'Analog Filter Design' block cannot be used as it gives continuous output which cannot be used for code generation.
While filters designed using other options are not giving correct filtering action.
Desigred signal frequency to pass is 50 to 800 Hz. Cutoff frequency can be any between 800 to 1000.
Sampling frequency is 2000Hz.21.JPG

채택된 답변

Sachin Meena
Sachin Meena 2019년 1월 8일
Go through the "Extended Capabilities" section in the following document. It explains how to generate code from "Analog Filter Design". I am asuming that you do not need production grade code.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by