Prev: How to make a multi-column legend?
Next: MNRFIT Error "Undefined function or method 'mnrfit' for input arguments of type 'double'"
From: Adam on 21 May 2010 13:15 Ray <rbenbernou(a)yahoo.com> wrote in message <14c1f967-6172-4e2d-9772-855a7f2c48ba(a)b7g2000pre.googlegroups.com>... > On Apr 28, 7:50 am, Ray <rbenber...(a)yahoo.com> wrote: > > I have the x-y-z coordinates of a set of points which I'd like to plot > > as a 3-D surface. At some coordinates, the points do not exist. The > > plotted surface should therefore show gaps or 'holes' in areas where > > points are missing. I've tried the 'surf' command but that doesn't > > render the desired surface. I found that 'surf' fits a nice smooth > > surface over the points while interpolating between the points, hence > > filling in those 'holes'. > > Is there a another Matlab command or any way in Matlab to get the plot > > I'm after ? Thanks a lot for your help. > > > > Ray > > > Thank you guys for your help. NaN works beautifully. Hi, I am doing the same thing myself using NaN to make holes in my surf plot. But rather than have these undefined regions white with grid lines, I would like it to be grey. I thought I could do it in illustrator by putting a grey square behind the surf plot, but of course this won't work as the color map doesn't de-group that way... Is there an easy solution i'm missing here?? Adam
From: Adam on 21 May 2010 13:16
Ray <rbenbernou(a)yahoo.com> wrote in message <14c1f967-6172-4e2d-9772-855a7f2c48ba(a)b7g2000pre.googlegroups.com>... > On Apr 28, 7:50 am, Ray <rbenber...(a)yahoo.com> wrote: > > I have the x-y-z coordinates of a set of points which I'd like to plot > > as a 3-D surface. At some coordinates, the points do not exist. The > > plotted surface should therefore show gaps or 'holes' in areas where > > points are missing. I've tried the 'surf' command but that doesn't > > render the desired surface. I found that 'surf' fits a nice smooth > > surface over the points while interpolating between the points, hence > > filling in those 'holes'. > > Is there a another Matlab command or any way in Matlab to get the plot > > I'm after ? Thanks a lot for your help. > > > > Ray > > > Thank you guys for your help. NaN works beautifully. Hi, I am doing the same thing myself using NaN to make holes in my surf plot. But rather than have these undefined regions white with grid lines, I would like it to be grey. I thought I could do it in illustrator by putting a grey square behind the surf plot, but of course this won't work as the color map doesn't de-group that way... Is there an easy solution i'm missing here?? Adam |