Plot pulse signal and metrics
plot( plots the signal and metrics
resulting from the last call of the object algorithm.
the low- and high-state levels and the state-level boundaries defined by the
the lower-, middle-, and upper-reference levels.
the locations of the mid-reference level crossings of the positive (+) and negative (-) transitions of each detected pulse.
TransitionOutputPort property of the object is set to
true, the locations of the upper and lower crossings are also plotted.
properties are set to
true, the corresponding overshoots and undershoots
are plotted as inverted or noninverted triangles. When the
SettlingOutputPort property is set to
locations where the signal enters and remains within the lower- and upper-state boundaries
over the specified seek duration are plotted.
Note: If you are using R2016a or an earlier release, replace each call to the object with the equivalent
step syntax. For example,
Find the slew rates of the leading and trailing edges of a 2.3 V digital clock sampled at 4 MHz.
dsp.PulseMetrics object. Set the
TransitionOutputPort property to
true to report transition metrics for the initial and final transitions. Set the
StateLevelsSource property to
'Auto' to estimate the state levels from the data.
pm = dsp.PulseMetrics('SampleRate',4e6, ... 'TransitionOutputPort', true, ... 'StateLevelsSource','Auto');
Compute the pulse and transition metrics and plot the result.
[pulse,transition] = pm(x); plot(pm);