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.

far field help in matlab plz ?

Status
Not open for further replies.

1d4n

Newbie level 2
Joined
Mar 13, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,294
hey i need to write a matlab code to plot the graph of a far field

and i need help alil

the far field described like that

Eteta=[j*eta0*k0*l*sin(teta)*exp(-j*k0*r)]/(8*pi*r)x^

x^ is the direction

kr>>1


now they tell me
l=lambada/10

they want me to plot spatial map
of
abs(Eteta(phi,teta))

for
r=100*lambada

and phi between 0 to 360
abd teta between 0 to 180
with resolution of 1 angle

i tryed it but always i get matrix dimension error

and why they gave me x^ when we on r,teta,phi?

can some 1 give an exapmle to this code?
 

Far field is a function of angular coordinates teta, phi. Therefore, Far field=E(teta, phi), normalized Far field=E(teta, phi)/Emax.

Far field of dipole f angular coordinate phi =1

%Far field of dipole f angular coordinate teta
t=-90:0.01:90;
E=cos(t*pi/180);
plot (t,E,'k');
grid on;

%Far field of antenna array

t=-90:0.01:90; % teta
f=45;% phi
n=8; % number of elements
l=280;% wavelength, mm
a=[1 1 1 1 1 1 1 1]; % amplitude distribution
d=220;% step of antenna array, mm
s=0;
for m=1:n
for k=1:n
s=s+a(k)*a(m)*exp(i*sin(t*pi/180)*(2*pi/l)*((k-1)*d*cos(f*pi/180)+(m-1)*d*sin(f*pi/180)));
end;
end;
plot (t,abs(s/max(s)),'k');
grid on;
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top