Peak-to-peak value
The dsp.PeakToPeak
System object™ computes the peak-to-peak value of an input.
To obtain the peak-to-peak value:
Create the dsp.PeakToPeak
object 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?.
creates a peak-to-peak
System object, ptp
= dsp.PeakToPeakptp
, that computes the difference between the maximum
and minimum value in an input or a sequence of inputs.
returns a peak-to-peak System object with each specified property set to the specified value. Enclose each
property name in single quotes. Unspecified properties have default values.ptp
= dsp.PeakToPeak(Name,Value
)
computes the peak-to-peak value of the input elements over successive calls to the object
algorithm. The object optionally resets its state based on the reset input signal,
y
= ptp(x
,r
)r
, and the value of the ResetCondition
property. To enable reset, set both the RunningPeakToPeak
and the
ResetInputPort
properties to true
.
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)
[1] IEEE® Standard on Transitions, Pulses, and Related Waveforms, IEEE Standard 181, 2003.