%% Display Frequency Input on Spectrum Analyzer
% This example shows how to visualize frequency input signals with the
% Spectrum Analyzer block.

%%
model = 'ex_psd_estimator_withSA';
open_system(model);
%%
% To visualize frequency-domain input signals using a Spectrum Analyzer
% block, in the Spectrum Settings, set *Input domain* to Frequency. In this
% example, also clear the *Two-sided spectrum* check box.


%%
sim(model)
open_system([model '/Spectrum Analyzer'])

%%
% You can see two peaks at 5 kHz and 10 kHz.  To measure these peaks, use
% the Peak Finder measurement tool.

%% 
% Copyright 2012 The MathWorks, Inc.