File Exchange Pick of the Week

August 3rd, 2006

Three dimensional polar plots

This blog has been going on for a few years now, and you may have noticed that the name has recently changed. Scott is still happily doing MATLAB stuff at the MathWorks but has decided to step aside and let me run the blog. I am going to need help, so I have started to enlist other Applications Engineers to help find the best files on the Exchange each week. I can also use the help from readers, so if you have a favorite file that has not been picked yet, please let me know (yes, even if it happens to be one you wrote!).

This week’s pick actually comes from our California based Application Engineer, Craig. This is what he had to say about 3D Polar plot

There is always the need to look at your data in new and interesting ways. This is one thing we all know MATLAB is extremely good at doing! One area is plotting data in a polar plot. Central actually has a number of submissions, but the 3D version helps create some incredible surfaces.

There was a great PDF document for this file, but I could not find a simple example when I did help polar3D, so I will put one from that document here:

P = peaks(49)
Polar3d(-P,0,2*pi,100,400,1, ’surf’)

Polar3D

2 Responses to “Three dimensional polar plots”

  1. Nayaki replied on :

    hi ! i am using the function . i am having a confusion in interpreting the data. please mail me , how to interpret the angle phi and theta in the plot.

  2. Bob replied on :

    Nayaki, if you need additional help using a File Exchange submission, you might try contacting the author.

    You could also post a question to the newsgroup.
    http://www.mathworks.com/matlabcentral/newsreader/

    Good luck!

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • Zach: Hi Doug and Les, I didn’t have a lot of time to mess with this, but I did find a work-around. I plotted...
  • hamed: k
  • Les: @Zach This isn’t exactly what you are looking for but at least it puts all three parameters on the same...
  • Zach: Thanks for your suggestions Doug. I’ll give that a shot and see what happens. I’ve seen many of...
  • Doug: @Zach, I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense....
  • Doug: @Teja, I think this will work: http://www.mathworks .com/access/helpdesk /help/techdoc/ref...
  • Gify: merry christmas :) nice christmas tree! Regards, Janet Gify
  • Teja: Dear Doug Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i...
  • Zach: I’m working with geophysical data, so I’d like to produce a depth profile. The y-axis would be...
  • Doug: @Ashok First, please do not use variable names that are MATLAB commands (std and mean). Second, p(j) should be...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.