[Top][All Lists]

[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:


The output expected:


View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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