help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Three-Dimension plot


From: FeBarbosa
Subject: Three-Dimension plot
Date: Tue, 13 Sep 2016 15:52:07 -0700 (PDT)

Hi everyone,

I'm trying to show a graphics of functions. So, with function with one
minimum, the plot is ok, but with some functions with two minimum, the
graphic doesn't represent the function. Below is my code:

%------------------------------------------------------
x = y = -10:0.1:10;
[x, y] = meshgrid(x, y);
z = (x - 1).^2 * (x - 2).^2 + (y - 1).^2;
mesh(x, y, z);
%------------------------------------------------------

The output:

<http://octave.1599824.n4.nabble.com/file/n4679745/erro.png> 

The output expected:

<http://octave.1599824.n4.nabble.com/file/n4679745/expected.gif> 






--
View this message in context: 
http://octave.1599824.n4.nabble.com/Three-Dimension-plot-tp4679745.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]