How can I calculate a mean of a signal or a mean of a part of a signal on Simulink ?

2 visualizaciones (últimos 30 días)
Hello everyone,
Will you help me to calculate a mean of a signal (mean of a part of a signal) on Simulink ?
I tried with the block " mean" but I always find the same input signal. I want a value ( the mean value of the signal).
thank you in advance

Respuestas (1)

Samar
Samar el 31 de En. de 2025
Hello @karim,
To calculate the mean of a signal, follow the steps listed below:
  1. You can use the “Mean” block from the Simulink Library.
  2. After placing this block in the appropriate place in the model, double-click on the block. A window will open named “Block Parameters: Mean”.
  3. Specify the fundamental frequency. This parameter defines the part of the signal for which you need the mean. For example, if you want the mean of half a cycle of a sine signal, specify (2 * fundamental frequency) as the frequency.
  4. Then, connect this block to a “Display” block, which will provide the desired scalar value.
You can refer the documentation for more information. To refer the documentation, follow the listed steps:
  1. Right click on the target block.
  2. Click on the last option Help.
Regards,
Samar

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by