%% Save Spectrum Data
% 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)

%% 
% Copyright 2012 The MathWorks, Inc.