How to design analog filter in Simulink which can be used for C code generation?
2 次查看(过去 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](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 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!