Save spectrum data shown in spectrum analyzer
spectrumTable = getSpectrumData(scope)
spectrumTable = getSpectrumData(scope) returns the spectrum and spectrogram displayed on the spectrum analyzer along with additional statistics about the spectrum.
spectrumTable
scope
collapse all
Save the spectrum estimation displayed on a spectrum analyzer.
Create a Spectrum Analyzer System object, scope, and generate data.
scope = dsp.SpectrumAnalyzer; scope(randn(5000,3))
Save data from the last spectrum shown on the spectrum analyzer to a table.
specTable = getSpectrumData(scope)
specTable = 1x3 table SimulationTime Spectrum FrequencyVector ______________ _______________ _______________ {[0]} {1536x3 double} {1536x1 double}
Spectrum analyzer you want to query. Specify a dsp.SpectrumAnalyzer System object™ or a Spectrum Analyzer Configuration object for a spectrum analyzer block.
dsp.SpectrumAnalyzer
Spectrum Analyzer Configuration
A spectrum table is returned containing the following fields:
SimulationTime
Spectrum
Spectrogram
MinHoldTrace
MaxHoldTrace
FrequencyVector
getMeasurementsData
getSpectralMaskStatus
isNewDataReady
You have a modified version of this example. Do you want to open this example with your edits?