79460578

Date: 2025-02-23 02:06:41
Score: 2.5
Natty:
Report link

You had the right idea with using a Moving Average, but the default sample time (inherited, -1) for this block does not work. You have to set it to a positive number (discrete steps) or 0 (continuous). You might also have to set a Max step size in MODELING > Model Settings > Solver > Sover details.

Here is a moving average with Fundamental frequency 0.1 Hz and sample time 0: Simulink Blocks - Moving average on a random variable input Scope image result

note: you could also use a gain block instead of product to scale the output by 100.

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jelly Joe