Set options in the Spectrum Analyzer. For this example, turn on the Cursor
Measurements. Also in the Spectrum Settings, change the View
type to Spectrum and spectrogram and set the
Axes Layout to
Horizontal.
Generate a script to recreate the dsp.SpectrumAnalyzer with the
same modified settings. Either select File > Generate MATLAB Script or
enter:
generateScript(scope);
A new editor window opens with code to regenerate the same
scope.
% Creation Code for 'dsp.SpectrumAnalyzer'.% Generated by Spectrum Analyzer on 10-Mar-2019 16:25:49 -0500.
specScope = dsp.SpectrumAnalyzer('ViewType','Spectrum and spectrogram', ...'AxesLayout','Horizontal');
% Cursor Measurements Configuration
specScope.CursorMeasurements.Enable = true;
Generate Script from dsp.ArrayPlot
Create a dsp.ArrayPlot object.
scope = dsp.ArrayPlot();
show(scope);
Set options in the Array Plot. For this example, from the
Measurements tab, turn on the Data
Cursors. From the Plot tab, turn on
Legend and Magnitude and Phase. Click
Settings and give the plot an XLabel and Title.
Generate a script to recreate the dsp.ArrayPlot with the same
modified settings. Either select Generate Script from the
Plot tab, or
enter:
generateScript(scope);
A new editor window opens with code to regenerate the same
scope.
% Creation Code for 'dsp.ArrayPlot'.% Generated by Array Plot on 20-Sep-2019 14:27:45 -0400.
arrayPlot = dsp.ArrayPlot('Title','My Array Plot', ...'XLabel','Frequency', ...'PlotAsMagnitudePhase',true, ...'ShowLegend',true, ...'Position',[2075 330 774 502]);
Generate Script from timescope
Create a timescope object.
scope = timescope;
show(scope)
Set options in the Time Scope. For this example, on the Scope
tab, click Settings. Under Display and Labels,
select Show Legend and Magnitude Phase Plot.
Set the Title as well.
Generate a script to recreate the timescope with the same modified
settings. Either select Generate Script from the
Scope tab, or
enter:
generateScript(scope);
A new editor window opens with code to regenerate the same
scope.
% Creation Code for 'timescope'.% Generated by Time Scope on 8-Nov-2020 13:51:54 -0500.
timeScope = timescope('Position',[2286 355 800 500], ...'Title','My Time Scope', ...'ShowLegend',true, ...'PlotAsMagnitudePhase',true);
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.