No BSD License  

4.52632

4.5 | 19 ratings Rate this file 30 Downloads (last 30 days) File Size: 65.9 KB File ID: #4189

Advanced Polar Plots

by

 

23 Nov 2003 (Updated )

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 file inspired Advanced Polar Plots V2.

MATLAB release MATLAB 6.1 (R12.1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (32)
28 Jun 2012 Jenny Chew

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!!

28 Jun 2012 Jenny Chew

I met a problem when I tried the following simple commands.

a=[1,2,3,4]; b=[2,3,4,5];

pp(a,b)

Then error showed up:

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

===================

Can anybody help me with this?
Thanks.

17 Oct 2011 shruthy reddy

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

28 Sep 2011 Huizi

thank you very much, helpfully

25 Jun 2010 Faisal

hi all,

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

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

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.

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)

23 Mar 2009 Daniel Armyr

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

15 Dec 2008 Justin Elstrott

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

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!

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

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.

Contact us