plot(sl) plots the signal and state levels
computed in the last call to the algorithm. If the Method property of
the state levels object is set to 'Histogram mode' or 'Histogram
Mean', the histogram is plotted in a subplot below the signal.
Compute and plot the state levels of a 2.3 V underdamped noisy clock. Load the clock data in the variable, x, and the sampling instants in the variable t.
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).
load('clockex.mat','x','t');
Estimate the state levels.
sl = dsp.StateLevels;
levels = sl(x);
Plot the clock data along with the estimated state levels and histograms.