Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 3dimensional curve
Date: Sat, 7 Feb 2009 05:29:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <gmj66u$slb$1@fred.mathworks.com>
References: <gmiuj6$nlk$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1233984542 29355 172.30.248.38 (7 Feb 2009 05:29:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 7 Feb 2009 05:29:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:516734

"amarender " <files@mathworks.com> wrote in message <gmiuj6$nlk$1@fred.mathworks.com>...
> Hi all,Can any one help me to draw the 3d curve for the following equation
> Z=(X)^2*(Y)^3.5*1.55/(1.51-(1.4096/Y))^2
> I am having X,Y,Z as 3 sets of points.
>        Thank you.

  Oliver Woodford has already advised you in another thread to use the 'plot3' function.  Just do this:

 plot3(X,Y,Z)

X, Y, and Z need to be either vectors or matrices of the same size.

  Note that in your equation you need the element-by-element operations using the "dot" notation:

 Z=X.^2 .* Y.^3.5 .* 1.55 ./ (1.51-1.4096./Y).^2 ;

Roger Stafford