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.

How to plot radiation pattern in MATLAB (in dB)

Status
Not open for further replies.

si14

Full Member level 3
Joined
Sep 27, 2006
Messages
174
Helped
16
Reputation
32
Reaction score
6
Trophy points
1,298
Location
North America
Activity points
2,196
radiation pattern matlab

Hi all:

I want to know how to plot radiation pattern in dB (Logarithmic) in MATLAB?

Thanks.
 

Kohi_boy

Full Member level 4
Joined
Apr 20, 2008
Messages
206
Helped
39
Reputation
78
Reaction score
23
Trophy points
1,298
Activity points
2,093
matlab radiation pattern

1) which version of MatLab
2) What is your INPUTS ??
 

si14

Full Member level 3
Joined
Sep 27, 2006
Messages
174
Helped
16
Reputation
32
Reaction score
6
Trophy points
1,298
Location
North America
Activity points
2,196
radiation pattern in matlab

Hi Kohi_boy:

The version is 2006Ra.
My inputs are angles(rad) and for example Gain in dB or Mag. I export them from HFSS.
 

prafuldeo

Full Member level 3
Joined
Mar 26, 2008
Messages
173
Helped
38
Reputation
76
Reaction score
25
Trophy points
1,308
Location
UK
Activity points
2,318
3d polar plot matlab

Hello masud_809,

Plotting radiation patterns in matlab is simple but little tricky. I use normalised radiation patterns i.e. max gain is '0' and then it decreases so the scale look likes 0,-5,-10 ...-40(dB) . Other important thing to keep in mind is the POLAR function in matlab do not plot the negative gains and returns you with an error so you have to keep everything positive or zero values.
So to plot the normalised radiation patterns :

1. open your data in excel sheet.

2. look for the max. gain value for particular angle, say for example its 6 dB. Now to make a plot with scale 0 to -40 dB which is most common, add 40-6 i.e 34 to all the gain. This make the highest gain of your result which is 6 dB in our example to 40 dB and other decreases accordingly.

3. Now look for any negative values in gain column and replace it to 'Zero'. Once done now you can plot this normalised radiation pattern data using POLAR command and since you already have angles in radians so just directly use that.
Once you plot the pattern just change the scale in matlab plot as 0 to -40.

Hope this solve your query.
Thanks & Regards
Praful
 

si14

Full Member level 3
Joined
Sep 27, 2006
Messages
174
Helped
16
Reputation
32
Reaction score
6
Trophy points
1,298
Location
North America
Activity points
2,196
plot radiation pattern matlab

Dear prafuldeo:

Thank you very much for your description! I appreciate your time. I will check it out today.

Cheers.
 

prafuldeo

Full Member level 3
Joined
Mar 26, 2008
Messages
173
Helped
38
Reputation
76
Reaction score
25
Trophy points
1,308
Location
UK
Activity points
2,318
matlab plot db

Hello masud_809,
Give it a try and let me know how did it go.

Cheers
 

    si14

    Points: 2
    Helpful Answer Positive Rating

AndyECE

Member level 5
Joined
Oct 17, 2008
Messages
85
Helped
18
Reputation
36
Reaction score
5
Trophy points
1,288
Activity points
1,933

prafuldeo

Full Member level 3
Joined
Mar 26, 2008
Messages
173
Helped
38
Reputation
76
Reaction score
25
Trophy points
1,308
Location
UK
Activity points
2,318
mmpolar download

I've tried mmpolar function, seems it doesn't support the hold on command so multiple plots in same figure is not possible.
 

mns

Junior Member level 3
Joined
Apr 14, 2007
Messages
30
Helped
7
Reputation
14
Reaction score
4
Trophy points
1,288
Location
India
Activity points
1,449
how to plot radiation pattern

hi everybody,
can anybody expalin how to make 3D polar radiation pattern in matlab?
I am using UV plot where with mesh(x,y,z) command
x=sin(theta)cos(phi)
y=sin(theta)sin(phi)
ans
z=calculated gain
all are NxN square matrix
But I want to plot in polar form
Thanks
 

prafuldeo

Full Member level 3
Joined
Mar 26, 2008
Messages
173
Helped
38
Reputation
76
Reaction score
25
Trophy points
1,308
Location
UK
Activity points
2,318
matlab polar db

Hi mns,
I've never tried 3D polar plots in matlab but seems an interesting exercise. I'll try and let you know.

Regards
 

mostafa ahmed

Member level 1
Joined
Mar 15, 2009
Messages
37
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Location
Egypt
Activity points
1,494
how to plot in matlab

Dear all,
I think you can use sisotool function to draw it.
With my best wishes.
 

nagasravanthi

Newbie level 2
Joined
Jan 4, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
nellore
Activity points
1,290
Re: how to plot radiation pattern

si14 said:
Hi all:

I want to know how to plot radiation pattern in dB (Logarithmic) in MATLAB?

Thanks.

Added after 4 minutes:

hai mns..

pls give me idea about taking theta and phi values in matlab as iam doing project on plotting antenna radiation pattern using matlab for all type of antennas...
hope i will get reply soon


thanku
 

si14

Full Member level 3
Joined
Sep 27, 2006
Messages
174
Helped
16
Reputation
32
Reaction score
6
Trophy points
1,298
Location
North America
Activity points
2,196
Re: how to plot radiation pattern

nagasravanthi said:
hai mns..
pls give me idea about taking theta and phi values in matlab as iam doing project on plotting antenna radiation pattern using matlab for all type of antennas...
hope i will get reply soon
thanku
Hi:

What do you mean by "taking theta and phi values"?
For this post, as you can see, I used MATLAB to re-plot a radiation pattern which I generated with HFSS.
So my angle data were ready and I just needed a function to SHOW that data in 2d/3d.
Regards
 

nagasravanthi

Newbie level 2
Joined
Jan 4, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
nellore
Activity points
1,290
Re: radiation pattern matlab

thanks for ur reply.....

can u give me some idea to how to plot radiation pattern for rectangular aperture with a=3lambda,b=2lambda in matlab....hope for the reply...
thnku
 

si14

Full Member level 3
Joined
Sep 27, 2006
Messages
174
Helped
16
Reputation
32
Reaction score
6
Trophy points
1,298
Location
North America
Activity points
2,196
Re: radiation pattern matlab

nagasravanthi said:
thanks for ur reply.....
can u give me some idea to how to plot radiation pattern for rectangular aperture with a=3lambda,b=2lambda in matlab....hope for the reply...
thnku
In order to plot the radiation pattern, you need to have the electric(magnetic) fields. There are some classic shapes, for example rectangular apertures with classic radiation patterns.
You can find the radiation pattern for these apertures in any antenna text books. My suggestion is Balanis.
Cheers
 

sriranjani

Newbie level 1
Joined
Aug 24, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,284
hi all,
can anyone say me the commands for plotting the radiation pattern for patch antennas clearly
 

nurulhazlina

Junior Member level 1
Joined
Jul 5, 2010
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
uk
Activity points
1,370
Hello,

how can i plot radiation pattern of an antenna in Matlab?

thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top