I was tooo lazy and didn't check the above comments before I posted mine. Actually my problem is same as srinivas's posted. Now I downloaded version 2 and it is fixed. Thank you so much, David!!

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?

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)

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!

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});

09 Oct 2008

Marcus Loh

Excellent help tools

20 Sep 2008

Vasikaran Prabaharan

How to give input data to the function..

Can you give some example using this PP function..

28 Aug 2008

Cloud Chu

I could not use this with R being negative value.

26 Jun 2008

Julian Endres

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

24 Nov 2006

Dan Boateng

A try

09 Apr 2006

Michael Bergandi

Doesn't work in R14.

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.

18 Nov 2005

Isabelle Schmich

very helpfull

28 Apr 2005

Rob S

Awesome! A vast improvement on the standard function.

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?

16 Feb 2005

Marcelo Zeri

I could not use it with subplot...

07 Jan 2005

A B

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

13 Nov 2004

Pascal Everton

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

31 Oct 2004

Eric L.

Thank you!! Excellent function!

19 May 2004

Joe Derk

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

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.

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.

08 Feb 2004

Steve Hobbs

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

04 Dec 2003

Catherine Johnson

Very Useful! Thank you

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.