help-octave
[Top][All Lists]
Advanced

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

Re: Noob Question


From: Ben Abbott
Subject: Re: Noob Question
Date: Fri, 15 Oct 2010 16:29:32 -0500

On Oct 15, 2010, at 2:57 PM, Matt Curcio <address@hidden> wrote:

> Hi All,
> I have just recently installed Octave on Ubuntu 10.4.
> I was looking through the manuals and was trying to do something
> 'easy'  (haha nothing is ever easy!) to start off, just a contour
> plot.
> I tried to follow a close example but got the inevitable error message:
> My little program looks like:
> #Surface contour plot:
> 
> x = 0:0.1:3;
> y = 0:0.1:2;
> [X,Y] = meshgrid(x, y);
> 6-Z=(2*x)+(3*y);
> surf(X,Y,Z)

Use capital X & Y when calculating Z

Z = (2*X) + (3*Y);

Ben


reply via email to

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