Root mean square of vector elements
TheRMS
object computes the root mean square (RMS) value.
To compute the RMS value of your input:
Define and set up your RMS calculation. SeeConstruction.
Callstep
to compute the RMS value for an input according to the properties ofdsp.RMS
. The behavior ofstep
is specific to each object in the toolbox.
Starting in R2016b, instead of using thestep
method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For example,y = step(obj,x)
andy = obj(x)
perform equivalent operations.
TheRunning
mode in thedsp.RMS
System object will be removed in a future release. To compute the running RMS in MATLAB®, use thedsp.MovingRMS
System object instead.
rms = dsp.RMS
returns a System object,rms
, that computes the root mean square (RMS) of an input or a sequence of inputs over the specifiedDimension
.
rms = dsp.RMS('
returns anPropertyName
',PropertyValue
,...)RMS
System object,rms
, with each specified property set to the specified value.
|
Enable calculating RMS over time Set this property to Default: |
|
Enable resetting in running RMS mode Set this property to Default: |
|
Reset condition for running RMS mode Specify the event to reset the running RMS as one of Default: |
|
Dimension to compute RMS value along Specify the dimension along which to calculate the RMS as one of Default: |
|
Numerical dimension to operate along Specify the dimension (one-based scalar integer value) of the input signal, along which the RMS is computed. The cannot exceed the number of dimensions in the input signal. This property applies when you set theDimensionproperty to Default: |
reset | Reset the running root mean square object |
step | Root mean square of input |
Common to All System Objects | |
---|---|
release |
Allow System object property value changes |
This object implements the algorithm, inputs, and outputs described on theRMSblock reference page. The object properties correspond to the Simulink®block parameters, except:
Treat sample-based row input as a columnblock parameter is not supported by thedsp.RMS
object.
Reset Portblock parameter corresponds to both theResetCondition
and theResetInputPort
object properties.
dsp.Minimum
|dsp.MovingRMS
|dsp.MovingStandardDeviation
|dsp.MovingVariance
|dsp.StandardDeviation
|dsp.Variance