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:
software that fits 3-d data

Subject: software that fits 3-d data

From: amarender

Date: 1 Mar, 2009 21:14:01

Message: 1 of 2

hi all,
    I have an equation as
          z=1.55*x^2*y^3.5/(1.51-y(1.4096))^2 and when i am trying to draw the curve in matlab ,I am not getting the exact 3d-curve.Should i think of other softwares please let me know which software to use.

Subject: software that fits 3-d data

From: John D'Errico

Date: 1 Mar, 2009 21:25:02

Message: 2 of 2

"amarender " <files@mathworks.com> wrote in message <goetqp$e5h$1@fred.mathworks.com>...
> hi all,
> I have an equation as
> z=1.55*x^2*y^3.5/(1.51-y(1.4096))^2 and when i am trying to draw the curve in matlab ,I am not getting the exact 3d-curve.Should i think of other softwares please let me know which software to use.

How did you try to plot this?

I have no problem. However, you should learn
the difference between the / operator and the ./ operator.
As well, * and .* are different, and that difference is
extremely important is you are operating on vectors.
Also of importance is the difference between ^ and
the .^ operator. You should probably be using the
./ .* and .^ operators.

Finally, if you raise a negative number to a non-integer
power, you will generate complex results. So any or
all of these things might be an issue. Unless you show
us what you tried, we are only guessing.

John

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