How can I modify simulink block parameters in generated code (ERT coder) (e.g. recalculate coefficients at programm runtime)

1 view (last 30 days)
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!

Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!