PeakToPeak object computes the peak-to-peak
value of an input.
To obtain the peak-to-peak value:
H = dsp.PeakToPeak creates
a peak-to-peak System object™,
H, that computes
the difference between the maximum and minimum value in an input or
a sequence of inputs.
H = dsp.PeakToPeak(' returns
PeakToPeak System object,
with each specified property set to the specified value.
Dimension to operate along. Specify the dimension as a positive
integer along which the peak-to-peak difference is computed. The value
of this property cannot exceed the number of dimensions in the input
signal. This property applies when the
Dimension to operate along. Specify the dimension along which
to calculate the peak-to-peak ratio as one of
Reset condition for running peak-to-peak mode. Specify the event
to reset the running peak-to-peak as one of
Enables resetting in running peak-to-peak mode. Set this property
Calculation over successive calls to
|clone||Clones the current instance of the peak-to-peak object|
|getNumInputs||Number of expected inputs to the |
|getNumOutputs||Number of outputs of the |
|isLocked||Locked status (logical) for input attributes and nontunable properties|
|release||Allow property value and input characteristics changes|
|reset||Reset the running peak-to-peak object|
|step||Compute peak-to-peak value|
Determine the peak-to-peak value for a vector input.
in1 = (1:10)'; h1 = dsp.PeakToPeak; y1 = step(h1, in1);
Determine the peak-to-peak value of a matrix input.
in2 = magic(4); h2 = dsp.PeakToPeak; h2.Dimension = 'All'; y2 = step(h2, in2)
 IEEE® Standard on Transitions, Pulses, and Related Waveforms, IEEE Standard 181, 2003.