%% MUSIC Pseudospectrum of a Sinusoidal Signal
% Define a complex signal with three sinusoids, add noise, and estimate its pseudospectrum using the MUSIC algorithm.

n = 0:99;
s = exp(1i*pi/2*n) + 2*exp(1i*pi/4*n) + exp(1i*pi/3*n) + randn(1,100);

Hs = spectrum.music(3,20);

pseudospectrum(Hs,s)

% Copyright 2015 The MathWorks, Inc.