メインコンテンツ

hide

スコープ ウィンドウを非表示にする

説明

hide(scope) は、スコープのウィンドウを非表示にします。

すべて折りたたむ

正弦波信号を作成し、スコープで表示します。

Fs = 1000;  % Sample rate
signal = dsp.SineWave(Frequency=50,SampleRate=Fs,...
    SamplesPerFrame=100);
scope = timescope(SampleRate=Fs,TimeSpanSource="property",...
    TimeSpan=0.25,YLimits=[-1 1]);
for ii = 1:2
     xsine = signal();
     scope(xsine)
end

スコープ ウィンドウを非表示にします。

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

スコープ ウィンドウを表示します。

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

ワークスペース変数をクリーンアップします。

clear scope Fs sine ii xsine

入力引数

すべて折りたたむ

スコープ オブジェクト。次のいずれかとして指定します。

  • spectrumAnalyzer オブジェクト

  • dsp.ArrayPlot オブジェクト

  • dsp.LogicAnalyzer System object™

  • timescope オブジェクト

  • dsp.DynamicFilterVisualizer オブジェクト

例: myScope = timescope; hide(myScope)

バージョン履歴

R2011a で導入

すべて展開する