How to design analog filter in Simulink which can be used for C code generation?
2 views (last 30 days)
Show older comments
Tushar Mahalle
on 5 Jan 2019
Answered: Sachin Meena
on 8 Jan 2019
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200205/21.jpeg)
![21.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200205/21.jpeg)
0 Comments
Accepted Answer
Sachin Meena
on 8 Jan 2019
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 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!