Mean (Variable Frequency)
(To be removed) Compute mean value of signal
The Specialized Power Systems library will be removed in R2026a. Use the Simscape™ Electrical™ blocks and functions instead. For more information on updating your models, see Upgrade Specialized Power System Models to use Simscape Electrical Blocks.
Library
Simscape / Electrical / Specialized Power Systems / Sensors and Measurements
Description
The Mean (Variable Frequency) block computes the mean value of the signal connected to the second input of the block. The mean value is computed over a running average window of one cycle of the frequency of the signal:
This block uses a running average window. Therefore, one cycle of simulation must complete before the block outputs the computed mean value. For the first cycle of simulation, the output is held constant to the specified initial value.
Parameters
- Initial frequency (Hz)
Specify the frequency of the first cycle of simulation. Default is
60.- Minimum frequency (Hz)
The minimum frequency value determines the buffer size of the Variable Time Delay block used inside the block to compute the mean value. Default is
45.- Initial input (DC component)
Specify the initial value of the input during the first cycle of simulation. Default is
0.- Sample time
Specify the sample time of the block, in seconds. Set to
0to implement a continuous block. Default is0.
Inputs and Outputs
FreqThe frequency of the signal.
InConnects to the signal to be analyzed.
XThe mean value of the signal.
Characteristics
| Sample Time | Specified in the Sample Time parameter Continuous if Sample Time = 0 |
| Scalar Expansion | Yes, of the parameters |
| Dimensionalized | Yes |
Version History
Introduced in R2013a