From: bluedevil.knight on 29 Jul 2010 13:20 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?
From: bluedevil.knight on 30 Jul 2010 07:52 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.
From: Sean on 30 Jul 2010 13:30 "bluedevil.knight" <bluedevil.knight(a)yahoo.com> wrote in message <2077428284.25155.1280438483980.JavaMail.root(a)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.
From: bluedevil.knight on 2 Aug 2010 07:22 Cool, found the solution here: http://geology.wlu.edu/connors/primers/Surfaces_and_Grids_in_Matlab/Surfaces_and_Grids_in_Matlab.htm
|
Pages: 1 Prev: xPC target external signal triggering and data logging Next: ANCOVA |