Generate C code from a filter which created by fdatool or filterbuilder
Ältere Kommentare anzeigen
Hello everyone, Can I generate C code from a fileter which created by fdatool or filterbuilder. For example, I have created a lowpass filter with filterbuilder, and it works well in matlab. Now,I hope matlab can generate c code for this filter, so I can use this filter in my DSP board. I am looking for some simple examples. Thank you.
Akzeptierte Antwort
Weitere Antworten (2)
Wayne King
am 30 Jun. 2012
0 Stimmen
Yes, you can, but you'll need a coder product, e.g. Matlab Coder, or Simulink Coder. You can export MATLAB code for your filter and then generate C code using MATLAB Coder. Or, you can create a Simulink model for you filter and generate C code that way.
1 Kommentar
adream307
am 30 Jun. 2012
Bearbeitet: Walter Roberson
am 30 Jun. 2012
Wayne King
am 30 Jun. 2012
0 Stimmen
What version of Matlab are you using? If you are using R2012a, generate the Matlab code with "Filter Design Function" or with the System object, both those options support code generation.
1 Kommentar
adream307
am 1 Jul. 2012
Kategorien
Mehr zu Filter Design finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!