This example demonstrates how to calculate characteristic values of the pulse signal y
Characteristic quantity | Numerically calculated | Analytically calculated |
Mean | mean.y |
y_mean |
Rectified mean | rectifiedMean.y |
y_rect |
Root mean square | rootMeanSquare.y |
y_rms |
First harmonic | harmonic.y_rms harmonic.y_arg |
y1_rms y1_arg |
The output of these blocks is updated after each period of the signal.
Using a simple pulse series, these values can be calculated analytically. Propagating these values as initial values for the output, we can compare the numerical solution with the analytical solution: The output is constant from the beginning.