Main Content

plot

(To be removed) Plot signal, state levels, and histogram

dsp.StateLevels will be removed in a future release. Use statelevels instead. To plot the state levels, call the statelevels function with no output arguments. For more information, see Compatibility Considerations.

Syntax

Description

example

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.

Examples

collapse all

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.

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.

plot(sl)

Input Arguments

collapse all

State levels object, specified as a dsp.StateLevels System object™.

Version History

Introduced in R2012a

collapse all

R2021b: dsp.StateLevels System object will be removed

dsp.StateLevels System object will be removed in a future release. To plot the state levels, call the statelevels function with no output arguments.

Update Code

This table shows typical usage of the System object and explains how to update existing code to use the statelevels function.

Discouraged UsageRecommended Replacement
load('clockex.mat', 'x', 't');
slevel = dsp.StateLevels;

Plot state levels and the corresponding histogram

figure;
plot(slevel)

Plot state levels and the corresponding histogram

figure;
statelevels(x)