Plot pulse signal and metrics




plot(pm) plots the signal and metrics resulting from the last call of the object algorithm.

By default plot displays:

  • the low- and high-state levels and the state-level boundaries defined by the PercentStateLevelTolerance property.

  • 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.

When the TransitionOutputPort property of the object is set to true, the locations of the upper and lower crossings are also plotted. When the PreshootOutputPort or PostShootOutputPort properties are set to true, the corresponding overshoots and undershoots are plotted as inverted or noninverted triangles. When the SettlingOutputPort property is set to true, the locations where the signal enters and remains within the lower- and upper-state boundaries over the specified seek duration are plotted.


collapse all

Note: If you are using R2016a or an earlier release, replace each call to the object with the equivalent step syntax. For example, obj(x) becomes step(obj,x).

Find the slew rates of the leading and trailing edges of a 2.3 V digital clock sampled at 4 MHz.


Construct the 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, ...

Compute the pulse and transition metrics and plot the result.

 [pulse,transition] = pm(x); 

Input Arguments

collapse all

Signal and metrics object, specified as one of the following:

Introduced in R2012a