%% Entering a Correlation Matrix
% Supply a positive definite correlation matrix, R, for estimating the spectral density. Use the default 256 samples.

R = toeplitz(cos(0.1*pi*(0:6))) + 0.1*eye(7);
pmusic(R,4,'corr')

% Copyright 2015 The MathWorks, Inc.