Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
3dimensional curve

Subject: 3dimensional curve

From: amarender

Date: 7 Feb, 2009 03:19:02

Message: 1 of 3

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.

Subject: 3dimensional curve

From: Srikanth

Date: 7 Feb, 2009 03:57:17

Message: 2 of 3

On Feb 6, 8:19=A0pm, "amarender " <fi...@mathworks.com> wrote:
> Hi all,Can any one help me to draw the 3d curve for the following equatio=
n
> Z=3D(X)^2*(Y)^3.5*1.55/(1.51-(1.4096/Y))^2
> I am having X,Y,Z as 3 sets of points.
> =A0 =A0 =A0 =A0Thank you.

help meshgrid
help surf

Subject: 3dimensional curve

From: Roger Stafford

Date: 7 Feb, 2009 05:29:02

Message: 3 of 3

"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

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us