www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/StateLevelsOf23VUnderdampedNoisyClockExample.m
%% State Levels of 2.3 V Underdamped Noisy Clock % 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*: This example runs only in R2016b or later. If you are using an % earlier release, replace each call to the function with the equivalent % |step| syntax. For example, myObject(x) becomes step(myObject,x). load('clockex.mat', 'x', 't'); %% % Estimate the state levels. h = dsp.StateLevels; levels = h(x); %% % Plot the clock data along with the estimated state levels and histograms. plot(h)