Moving average with a time window 600s but using a variable step modeling setting
显示 更早的评论
Hi, I have a problem in Simulink. I should obtain the average value of a signal but I should keep this average value for the next 600 time steps. During these steps the output value is constant and it has to be updated each 600 new steps. Moreover I need to use a variable step for the simulation. Using "Moving Average", it seems not possible to use a variable step setting. How can I do this? Thank you so much.
4 个评论
Paul
2023-4-23
What is the definition of a "time step" when using a variable step solver? I suppose it could be 600 major steps of the solver, but that doesn't sound very useful.
Angelo De Donato
2023-4-23
Angelo De Donato
2023-4-23
Paul
2023-4-23
My recommendation is to rethink any approach that explicitly relies on the step size of the solver, whether it be variable or fixed. Develop the model to use the sample times that you need to model the system, and then choose an appropriate solver for the model.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
