Prob71 - % %DESCRIPTION:Program to analyse the Angle of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %DESCRIPTION:Program to analyse the Angle of Arrival Estimation using % %DATE :12/12/2009 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% clear all; clc; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% close all; angle= [-60 -10 20 45]; % assigning arbitrary AOA disp('The actual DoA in degree is '); disp(angle); b1=[-90:1:90]; M=7; % Number of Antenna Elements i= sqrt(-1); % Assigning S theta values for j=0:M-1, for k=1:4, S(j+1,k) =exp(-i*pi*j*sin(angle(k)*pi/180)); end end % Assigning S theta values from -90 to 90 degrees for j=0:M-1, for k=1:181, A1(j+1,k) =exp(-i*pi*j*sin(b1(k)*pi/180)); end end A =sqrt(10^(4/10)); K=4; L=15; N= 4*(L+1)/4; N_users = 4; reg1 = randsrc(1,4,[0 1]); for k = 1:L mseq1(k) = reg1(4); c1 = xor(reg1(2),xor(reg1(3),reg1(4))); reg1(4)=reg1(3); reg1(3)=reg1(2); reg1(2)=reg1(1); reg1(1)=c1; end reg2 = randsrc(1,4,[0 1]); for k = 1:L mseq2(k) = reg2(4);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/27/2012 for the course EE 535 taught by Professor D.ramalingam during the Spring '12 term at SUNY Albany.

Page1 / 3

Prob71 - % %DESCRIPTION:Program to analyse the Angle of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online