System object: dsp.TimeScope
Reset internal states of time scope object
reset(H) sets the
internal states of the
H to their initial values.
You should call the
reset method after calling
step method when you want to clear the Time Scope
figure displays, prior to releasing system resources. This action
enables you to start a simulation from the beginning. When you call
reset method, the displays will become blank
again. In this sense, its functionality is similar to that of the MATLAB®
clf function. Do not call the
after calling the
View a sine wave on the time scope. When you finish the simulation, pause for 5 seconds and then reset the screen. Then, view a different sine wave on the same time scope.
hsin = dsp.SineWave('Frequency', 100, 'SampleRate', 1000, 'SamplesPerFrame', 10); hsin1 = dsp.SineWave('Frequency', 50, 'SampleRate', 1000, 'SamplesPerFrame', 10); hts1 = dsp.TimeScope('SampleRate', hsin.SampleRate,'TimeSpan', 0.1); for ii = 1:10 x = step(hsin); step(hts1, x); end % Pause and then reset internal states pause(5); reset(hts1); for ii = 1:10 x = step(hsin1); step(hts1, x); end release(hts1);