How can I modify simulink block parameters in generated code (ERT coder) (e.g. recalculate coefficients at programm runtime)
1 次查看(过去 30 天)
显示 更早的评论
My model consists of simple input/output blocks, connected through an Overlap-Add-Filter and generated FIR coefficients by
fircls1(220,(350)/(2000/2),0.02,10^(-80/20));
Building this code with the ERT Coder, with "Reusable function" activated, gives me some nice, but non-flexible functions.
My question now is, if there is a possible way to recalculate this coefficients during program runtime with the given routines (e.g. fircls1()), thus I can change the filter behavior. Meaning, that I don't get the precalculated coefficients as some constants.c, but more a function, that calculates this at some point of runtime.
Thanks in advance!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!