[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NaN and Surf function
From: |
Etienne Grossmann |
Subject: |
Re: NaN and Surf function |
Date: |
Sat, 23 Sep 2006 23:44:44 -0400 |
User-agent: |
Mutt/1.4.2.1i |
Hi all,
I just checked that the following still works (non-regular grids and
nans):
x = linspace (-1,1,21); [x,y] = meshgrid (x,x); z = x.^2 + y.^2; x =
x.*(1+z/2); y = y.*(1+z/2); z(floor(rand(1,10)*21^2)) = nan; vmesh(x,y,z)
results in the snapshot in attachment. You will need freewrl
(.sourceforge.net) though.
Hth,
Etienne
On Fri, Sep 22, 2006 at 12:38:08PM -0700, Kyle Snow wrote:
# My question is regarding the handling of NaN values for the Z-coordinate
# in the function
#
#
#
# surf(x,y,Z).
#
#
#
# These values exist because my gridded data set has an irregular
# boundary. The surf command does not seem to handle this well. In matlab,
# these data points are simply not plotted, and the surf plot for the
# non-NaN points looks fine. Is there a way I can get this to work using
# Octave's surf function?
#
#
#
# Note that I am running WindowsXp, and I downloaded the exe file from
#
# http://superb-east.dl.sourceforge.net/sourceforge/octave/octave-2.1.73-1
# -inst.exe.
#
# I have not obtained the Octave source code.
#
#
#
# Thanks,
#
#
#
# Kyle
#
# _______________________________________________
# Help-octave mailing list
# address@hidden
# https://www.cae.wisc.edu/mailman/listinfo/help-octave
--
Etienne Grossmann ------ http://www.isr.ist.utl.pt/~etienne
freewrl.snap.0002.png
Description: PNG image