Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

matlab plot 2D polar pattern

Status
Not open for further replies.

ppAntenna

Member level 1
Joined
Oct 11, 2001
Messages
39
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
247
2d polar matlab

If I have E field and H field. How can I plot an antenna pattern?
Anyone can provide a matlab code to do this ??
 

ppAntenna

Member level 1
Joined
Oct 11, 2001
Messages
39
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
247
polar vectors+matlab

dead link?!
 

rntsay

Member level 4
Joined
Mar 29, 2002
Messages
73
Helped
14
Reputation
28
Reaction score
11
Trophy points
1,288
Activity points
484
matlab radpat

looks like good link to me!
 

rntsay

Member level 4
Joined
Mar 29, 2002
Messages
73
Helped
14
Reputation
28
Reaction score
11
Trophy points
1,288
Activity points
484
plot 2d polar matlab

my mistake, some pages are ok, but the matlab files are dead links.
let me make it up with this matlab code that should be very close to what you want (it actually defines then plots spherical harmonics)

L=2;M=1;
theta=pi*linspace(0,1,30);
phi=2*pi*linspace(0,1,60);
r=legendre(L,cos(theta),'sch');
dd=r(M+1,:);dd=abs(dd' * cos(M*phi));
X=dd.*(sin(theta)'*cos(phi));
Y=dd.*(sin(theta)'*sin(phi));
Z=dd.*(cos(theta)'*ones(size(phi)));
figure(1);clf;mesh(X,Y,Z),
shading flat;
axis on;axis square;axis([-1 1 -1 1 -1 1]);
colormap gray;
caxis([0 10]);
 

ppAntenna

Member level 1
Joined
Oct 11, 2001
Messages
39
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
247
matlab polar pattern

Thnaks for your help rntsay,

But I mean I have EX Ey Ez and Hx Hy Hz six component.
How can I convert those to 2D polar pattern in matlab??
:roll:
 

eirp

Advanced Member level 1
Joined
Dec 11, 2001
Messages
466
Helped
29
Reputation
56
Reaction score
19
Trophy points
1,298
Location
Phase center
Activity points
5,142
polarpattern matlab

Hi!

You need to convert cartesian components to spherical. You can use i.e. Bahl&Bhartia&Garg&Ittipiboon: Microstrip Antenna design Handbook, matrix equation (1.25) at pp. 37.
Regards,
Eirp
 

rntsay

Member level 4
Joined
Mar 29, 2002
Messages
73
Helped
14
Reputation
28
Reaction score
11
Trophy points
1,288
Activity points
484
matlab spherical plot 2d

look at Poynting vector definition to get
(Ex,Ey,Ez,Hx,Hy,Hz) -> energy (scalar) -> power ... -> antenna pattern
 

ataha

Junior Member level 2
Joined
Mar 25, 2004
Messages
23
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Location
EGYPT
Activity points
169
matlab poynting vector

I need to plot a 3D pattern of an Antenna , How can I do using MATLAB
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top