Generate C code from a filter which created by fdatool or filterbuilder
이전 댓글 표시
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.
채택된 답변
추가 답변 (2개)
Wayne King
2012년 6월 30일
0 개 추천
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
adream307
2012년 6월 30일
편집: Walter Roberson
2012년 6월 30일
Wayne King
2012년 6월 30일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Filter Design에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!