dsp.PeakToRMS
Peak-to-root-mean-square value of vector
Description
The dsp.PeakToRMS
System object™ calculates the peak-to-root-mean-square ratio of a vector.
To compute the peak-to-root-mean-square ratio:
Create the
dsp.PeakToRMSobject and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Creation
Description
creates a
peak-to-root-mean-square System object, ptr = dsp.PeakToRMSptr, that returns the ratio of the maximum magnitude
(peak) to the root-mean-square (RMS) value in an input or a sequence of inputs.
returns an peak-to-root-mean-square System object, ptr = dsp.PeakToRMS(Name,Value)ptr, with each specified property set to the specified
value. Enclose each property name in single quotes. Unspecified properties have default
values.
Properties
Usage
Syntax
Description
computes the peak-to-RMS ratio of the input elements over successive calls to the object
algorithm. The object optionally resets its state based on the reset input signal,
y = ptr(x,r)r, and the value of the ResetCondition
property. To enable reset, set both the RunningPeakToRMS and the
ResetInputPort properties to true.
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj, use
this syntax:
release(obj)
Examples
More About
References
[1] IEEE® Standard on Transitions, Pulses, and Related Waveforms, IEEE Standard 181, 2003.
Extended Capabilities
Version History
Introduced in R2012a