% 'smnorm.m' update April 7, 1992
% This is a function program of  Spectrum 
% Mimimun-Norm algrithm. The input is
% the data matrix from the array and number of the coming signals. 
%  The output is the estimation of the angles.
% a: the array matirx of a single angle.
% Pmu: the null-spectrum of this algrithm
% E,U,V:singular values and associated left- and right- singular vector
function middle1=beamfrm(Y)
ij=sqrt(-1);
[L,x]=size(Y);

Ryy=Y*Y';

for m=1:180
        middle1=real(steervec(m,L)'*Ryy*steervec(m,L));
end


