How can I get the windowlength parameter of the dsp.MovingAverage system object as a variable?
1 次查看(过去 30 天)
显示 更早的评论
Hello, I want to generate c code using the dsp.MovinAverage system object and I want to get the window length parameter as a variable. Parameter is set to nontunable and window length must be constant.
I made code generation by defining the window length value as a variable in the model workspace in the moving average block in the simulink.
Is it possible to do this with the dsp.MovinAverage system object in Matlab?
Thank you.
1 个评论
David Fink
2022-9-14
I believe I understand what you're asking, but please confirm that my understanding below is correct:
The goal is to create a dsp.MovingAverage object whose WindowLength property is an input variable to the generated C code.
Is this correct?
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!