%% Display Simple Sine Wave Input Signal
% Create |dsp.SineWave| and |dsp.TimeScope| objects. Run the scope to display 
% the signal

sine = dsp.SineWave('Frequency',100,'SampleRate',1000);
sine.SamplesPerFrame = 10;
scope = dsp.TimeScope('SampleRate',sine.SampleRate,'TimeSpan',0.1);
for ii = 1:10
     x = sine();
     scope(x);
end
%% 
% Run the |release| method to allow changes to property values and input 
% characteristics. The scope automatically scales the axes.
%%
release(scope)

%% 
% Copyright 2012 The MathWorks, Inc.