help-octave
[Top][All Lists]
Advanced

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

Re: Octave won't plot 3D graphs anymore.


From: marco atzeri
Subject: Re: Octave won't plot 3D graphs anymore.
Date: Fri, 15 Mar 2013 15:43:30 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

On 3/15/2013 4:57 AM, Eusebio, Paulo wrote:
I have GNU Octave version 3.2.4. It used to be able to plot 3D graphs
but not anymore. Everytime I try to run the following program it keeps
saying 'invalid use of script in index notation'. What does that mean?
The following code is thusly:

% mesh.m
% produces 3-D graph of analytic solution to laplace equation
clear;
a = -2; b = 2; N = 100; h=(b-a)/N;
xx = a:h:b; yy=xx;
[x,y]=meshgrid(xx,yy);
z = 1./(1+(x.^2 + 2*x.*y + y.^2));
figure;
surf(x,y,z);
axis([a,b,a,b,0,1]); xlabel("x"); ylabel("t")

How do I fix this problem? Do I have to upgrade or delete certain libraries?


It works fine on my 3.6.2 on cygwin.
we need more info about your system and were exactly is the error ?

Regards
Marco




reply via email to

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