Path: news.mathworks.com!not-for-mail
From: "Michael Garrity" <mNOSPAMgarrity@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to plot functions of this type?
Date: Mon, 10 Mar 2008 15:05:21 -0400
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <fr40pj$77j$1@fred.mathworks.com>
References: <fr3a99$kue$1@fred.mathworks.com>
Reply-To: "Michael Garrity" <mNOSPAMgarrity@mathworks.com>
NNTP-Posting-Host: garritym.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1205175923 7411 144.212.107.178 (10 Mar 2008 19:05:23 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 10 Mar 2008 19:05:23 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:456402




"Mohammad Monfared" <gohardoust@gmail.com> wrote in message news:fr3a99$kue$1@fred.mathworks.com...
> How to plot the functions of the type f(x,y,z)=c , in
> matlab? which functions should be used?
>
> thanks!
> Reza M.
>

One easy way is isosurface. Consider this example:

nx=12
ny=12
nz=12
[x y z]=meshgrid(linspace(-1,1,nx),linspace(-1,1,ny),linspace(-1,1,nz))
v=2*x.^2 - 3*y.^3 + 4*z.^4
c=1
isosurface(v,c)

Reformulating as an implicit equation can save a
lot of memory at high resolution though.

    -MPG-