No BSD License  

Highlights from
Advanced Polar Plots

4.5

4.5 | 18 ratings Rate this file 68 Downloads (last 30 days) File Size: 65.88 KB File ID: #4189

Advanced Polar Plots

by David Ireland

 

23 Nov 2003 (Updated 25 Nov 2003)

Advanced polar plots.

| Watch this File

File Information
Description

An improved version of the MATLAB function 'polar'. Supports negative numbers and other plotting features.

Acknowledgements
This submission has inspired the following:
Advanced Polar Plots v2
MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (30)
26 Nov 2003 Jim Tonti

After spending too much time trying to plot
radiation patterns the hard way, I tried
this, and all my problems were solved!
It's well thought out, documented, and it works!
Thank you, David.

04 Dec 2003 Catherine Johnson

Very Useful! Thank you

08 Feb 2004 Steve Hobbs

Easy to use, and great plots of radiation patterns. Thanx!

27 Feb 2004 Shad Holt

this is sweet, after trying to plot radiation powers in polar-logrithmic form for hours, this file allowed me to do it in minutes. great help.
If you need to plat radiation patterns in dB, this is the way to do it.

12 May 2004 Keith Gooley

Spent an hour or two trying to plot antenna radiation patterns without satisfaction. This function did it almost straight away. Thank you.

19 May 2004 Joe Derk

Geat code! Infinitely better than MATLAB's base polar plot.

31 Oct 2004 Eric L.

Thank you!! Excellent function!

13 Nov 2004 Pascal Everton

Thanks for the great function! Now I can quickly and easily plot antenna radiation patterns!

07 Jan 2005 A B

this 65 KB of code contain a trojan what doesn't help that much with antennas

16 Feb 2005 Marcelo Zeri

I could not use it with subplot...

25 Mar 2005 mike miller

thanks for the great job. it is realy help for polar plot.

one question, i compiled it with matlab 6.5 compiler, but can not run it. it generated the following error at runtime:

conversion to cell from char is impossible

any suggestion?

28 Apr 2005 Rob S

Awesome! A vast improvement on the standard function.

18 Nov 2005 Isabelle Schmich

very helpfull

16 Jan 2006 Oliver Tong

It is excellent. Wonderful. But I seem to have a problem with plotting two plots together. When "Hold is on", there seems to be some error.

09 Apr 2006 Michael Bergandi

Doesn't work in R14.

24 Nov 2006 Dan Boateng

A try

26 Jun 2008 Julian Endres

great work! How can I insert text into the plot using text() or something like that?

28 Aug 2008 Cloud Chu

I could not use this with R being negative value.

20 Sep 2008 Vasikaran Prabaharan

How to give input data to the function..

Can you give some example using this PP function..

09 Oct 2008 Marcus Loh

Excellent help tools

13 Nov 2008 srinivas

Can you please help me with this problem ? .... I am using Matlab 7.6 .....

I am getting error msg for a simple input data as shown below ......

Command:

pp([1 2],[3 4])

Error:

??? For colon operator with char operands, first and last operands
must be char.

Error in ==> pp>PlotTrace at 1262
        x =
        norm_r(PlotStartFlag(i):PlotBreakFlag(i)).*cos(theta(PlotStartFlag(i):PlotBreakFlag(i)));
        
Error in ==> pp at 287
    PlotTrace(ThetaPlot, RPlot, PlotProperties, Traces{i+1});

02 Dec 2008 Dr. Thomas Patzelt

The reason for the problem above is that the author of Advanced Polar Plots did not concern that PlotBreakFlag might be empty. The present MATLAB versions (e.g. MATLAB Version 7.7.0.471 (R2008b) for Linux) seem to be more sensitive in detecting such mistakes. To avoid the problem I modified pp.m starting with line 1056:
...
if(InPlotFlag == 1)
    if isempty(PlotBreakFlag)
        PlotBreakFlag = [length(norm_r)];
    else
        PlotBreakFlag = [PlotBreakFlag length(norm_r)];
    end
end
...
Hope, this little workaround will help you!

15 Dec 2008 Justin Elstrott

Hi,
  Has anyone had any luck with the fix suggested in the 02 Dec 2008 post?

23 Mar 2009 Daniel Armyr

I added Patzelts fix to the original code and resubmitted it as http://www.mathworks.com/matlabcentral/fileexchange/22859

30 Mar 2009 Noelia Oses

Hi all,
I have found this function when searching for how to make the a polar plot look like a compass from 0 to 360 deg clock wise and that the center to 0 axis is vertical pointing up. And this function has done exactly that for me.
However, it doesn't actually plot my data, which was being plotted by polar(theta,rho) just fine.

Does anybody know what's going on?
Thank you very much in advance,
Noelia

PS: the error message is:

??? For colon operator with char operands, first and last operands
must be char.

Error in ==> pp>PlotTrace at 1262
        x =
        norm_r(PlotStartFlag(i):PlotBreakFlag(i)).*cos(theta(PlotStartFlag(i):PlotBreakFlag(i)));
        
Error in ==> pp at 287
    PlotTrace(ThetaPlot, RPlot, PlotProperties, Traces{i+1});

Error in ==> PlotGaitData at 13
pp(theta,rho,'-or','ThetaDirection','cw','ThetaStartAngle',270,'CentreValue',0)

03 Apr 2009 Jeffrey Hall

Is there anyway that someone could please send me a MATLAB code snippet showing pp.m in all of its glory?
 
I am evaluating multiple software packages for creating polar plots and am on a tight schedule.
 
Thanks.

09 Apr 2009 Noelia Oses

Hi all,

I am using pp to plot polar plots and it's great!
However, even though I'm using style 'or' it still plots the lines linking the markers.
Does anyone know what to do so that it doesn't plot the lines?

Thank you very much!!
Noelia

25 Jun 2010 Faisal

hi all,

i need demo for this script... can any 1 give it to me.. thx alot

28 Sep 2011 Huizi

thank you very much, helpfully

17 Oct 2011 shruthy reddy

can u plz help me in plotting (radiation patterns) polar plots with data 0- 50db in matlab

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized David Ireland 22 Oct 2008 07:09:51
plotting David Ireland 22 Oct 2008 07:09:51
polar plots radiation pattern David Ireland 22 Oct 2008 07:09:51
antenna David Ireland 22 Oct 2008 07:09:51
graphics David Ireland 22 Oct 2008 07:09:51
graph types David Ireland 22 Oct 2008 07:09:51
polar Daniel Armyr 02 Feb 2009 07:35:13
plot Daniel Armyr 02 Feb 2009 07:35:14
antenna Kaustubh 19 May 2010 11:56:52
antenna sarah 21 Nov 2011 12:51:46
polar tom 22 May 2012 19:30:11

Contact us at files@mathworks.com