%% Averaged Power Spectrum of Pink Noise
% 
% This example shows how to generate two-channels of pink noise from the
% Colored Noise block and compute the power spectrum based on a running
% average of 50 PSD estimates.
% 
% The Colored Noise block generates two-channels of pink noise 
% with 1024 samples. The Spectrum Analyzer computes modified periodograms 
% using a Hamming window and 50% overlap. The running average of the PSD 
% uses 50 spectral averages.

% Copyright 2018 The MathWorks, Inc.

%% 
open_system('ex_colored_noise_pink')
sim('ex_colored_noise_pink')