필터 지우기
필터 지우기

8-hr moving/running averages in SImulink

조회 수: 1 (최근 30일)
Christopher
Christopher 2013년 3월 12일
Hey guys,
I'm trying to calculate the running/moving average over a fixed time period for a variable in Simulink. However, I am having difficulties in implementing a solution.
I am calculating the variable '_x_' using the ode45 solver at variable-steps. At each time-step, for t>8, I want to calculate the average of '_x_' over the period '_t-8 to t_'. I tried using the integrator block with reset, however, due to the reset, the results are inconsistent. I also checked out the "Windowed Integrator" block however that is dependent on a predetermined number of samples so I can't use it since i'm using variable step.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by