hide

Hide scope window

Syntax

hide(scope)

Description

example

hide(scope) hides the window of the scope.

Examples

collapse all

Create a sine wave signal and view it in the scope.

Fs = 1000;  % Sampling frequency
signal = dsp.SineWave('Frequency',50,'SampleRate',Fs,'SamplesPerFrame',100);
scope = dsp.TimeScope(1,Fs,'TimeSpan',0.25,'YLimits',[-1 1]);
for ii = 1:2
     xsine = signal();
     scope(xsine)
end

Hide the scope window.

if(isVisible(scope))
    hide(scope)
end

Show the scope window.

if(~isVisible(scope))
    show(scope)
end

Clean up workspace variables.

clear scope Fs sine ii xsine

Input Arguments

collapse all

Scope object whose window you want to hide, specified as one of the following:

  • dsp.TimeScope System object™

  • dsp.SpectrumAnalyzer System object

  • dsp.ArrayPlot System object

  • dsp.LogicAnalyzer System object

  • dsp.TimeScope System object

  • dsp.DynamicFilterVisualizer object

Example: myScope = dsp.TimeScope; hide(myScope)

Introduced in R2011a