Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Planar Array Matlab Code

Status
Not open for further replies.

tarhan

Newbie level 1
Newbie level 1
Joined
Mar 4, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,289
I try to understand a matlab code for planar arrays. I would be very appreciated if somebody help me.
In the following code, there are 2 angels. Theta and phi. The theta is array element angel to z direction and phi is to x direction.as i know. If I want to see braodside pattern ,which theta or phi angle do i need ? And if want to compare my pattern for different angles, which angle should i compare ? I am little bit confused about theta and phi, how i should understandt these two.

%AF calculation
theta0=pi/200:pi/200:2*pi;

phi0=pi/200:pi/200:pi;

[phi,theta]=meshgrid(phi0,theta0);
sinU=sin(theta).*cos(phi);
sinV=sin(theta).*sin(phi);

AF=0;
for n=1:5
for m=1:4
AF = AB_coe(n,m)*exp(j*(n)*k*dx*(sinU)).*exp(j*k*(m)*dy*(sinV)) + AF;
end
end
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top