# How do I draw an antenna pattern 2D and 3D figure with this data?

75 views (last 30 days)
HONG CHENG on 31 Oct 2019
Answered: Shashwat Bajpai on 11 Jun 2021
If you are interested in this question, you can download the data.
I am a student majoring in computer engineering，so I don't fully understand the meaning of this data.
But I beleive that with these data, I can draw a similar 3D and 2D antenna pattern for my paper.
I have tries the functions in Antenna Toolbox, but the input of these functions are different from mydata.
Here is a screen shot of the data, there are 5 colomns
I hope I can get a similar figure like the following one.
Thanks in advance!
##### 0 CommentsShowHide -1 older comments

Sign in to comment.

### Accepted Answer

Cyrus Tirband on 31 Oct 2019
You have insufficient data to plot a 3D Figure, as it would require a measurement for every observation angle (combination of azimuth and polar angle). It seems like you have the data of all angles θ for a given ϕ, and all angles ϕ for a given θ, but not every combination (this would require a very long measurement and special equipmentto do, and is not very practical).
However, a 2d polar plot is possible, but simply using polarplot.
You will have to unwrap your phase a bit, since it ranges from -90 to 90 and goes back, but it should go from -180 to 180 or 0 to 360;
Once done, you'll get the plot below, using your data from the last two columns (phi vs S21). You can change the axis, ticks, and all the other things to your liking. In fact, it looks almost identical to the picture you already posted, but mirrored, did you already use the data to plot the picture?:
##### 1 CommentShowHide None
HONG CHENG on 1 Nov 2019
Thanks for your kind consideration!
The figures in the excel are not created by myself. and I use the following codes just have this figure without the "unwrap phase" that you mentioned.
I used the
polarpattern
of Antenna Toolbox and got this
after I change the phase from the orignal one to 0~360, I got the similar one image
figure;polarpattern(angleAtt_data2(:,1),angleAtt_data2(:,2),'LineWidth',3)
What's more, when the phase is from -180 to 180, the figure is totally same

Sign in to comment.

### More Answers (1)

Shashwat Bajpai on 11 Jun 2021
You can also use Antenna Toolbox where you don't need to calculate/collect all of the data. You'll just need to provide the type of antenna and the design frequency and it'll help you design, analyze and calculate all the parameters as per your requirement.
Hope this helps!
##### 0 CommentsShowHide -1 older comments

Sign in to comment.

### Categories

Find more on Analysis, Benchmarking, and Verification in Help Center and File Exchange

R2019a

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!