Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
3-D polar plot

Subject: 3-D polar plot

From: bluedevil.knight

Date: 29 Jul, 2010 21:20:53

Message: 1 of 3

I want to plot a surf plot of a matrix of data I have in polar coordinates.

So for instance:
theta=[0 .1 .2 .3];
r=[1 2 3 4];
data=[1 2 3 4;5 6 7 8;9 10 11 12; 13 14 15 16];

Obviously I could plot it using surf(theta,r,data)
but the coordinate system is wrong. I want something like polar3d. I tried polar3d at the download site, but that assumes the spacing between theta and r variables is identical, but in my case it is .1 for theta and 1 for r.

Any ideas?

Subject: 3-D polar plot

From: bluedevil.knight

Date: 30 Jul, 2010 15:52:33

Message: 2 of 3

Bumping...

I want to plot a surf plot of a matrix of data I have in polar coordinates.

So for instance:
theta=[0 .1 .2 .3];
r=[1 2 3 4];
data=[1 2 3 4;5 6 7 8;9 10 11 12; 13 14 15 16];

Obviously I could plot it using surf(theta,r,data)
but the coordinate system is wrong. I want something like polar3d. I tried polar3d at the download site, but that assumes the spacing between theta and r variables is identical, but in my case it is .1 for theta and 1 for r.

Subject: 3-D polar plot

From: Sean

Date: 30 Jul, 2010 17:30:23

Message: 3 of 3

"bluedevil.knight" <bluedevil.knight@yahoo.com> wrote in message <2077428284.25155.1280438483980.JavaMail.root@gallium.mathforum.org>...
> I want to plot a surf plot of a matrix of data I have in polar coordinates.
>
> So for instance:
> theta=[0 .1 .2 .3];
> r=[1 2 3 4];
> data=[1 2 3 4;5 6 7 8;9 10 11 12; 13 14 15 16];
>
> Obviously I could plot it using surf(theta,r,data)
> but the coordinate system is wrong. I want something like polar3d. I tried polar3d at the download site, but that assumes the spacing between theta and r variables is identical, but in my case it is .1 for theta and 1 for r.
>
> Any ideas?

You could use pol2cart() and then surf.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us