help-octave
[Top][All Lists]
Advanced

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

Plotting mesh plots


From: asha g
Subject: Plotting mesh plots
Date: Tue, 27 May 2008 23:25:48 -0700 (PDT)

I have the following code :
N = 10; niter = 5; l= 6; t = niter* deltaT; deltaT =
0.008;
x = linspace(0,l,N);
y = linspace(0,t,niter);

[X,Y]= meshgrid(x,y);
Z= V;
mesh(X,Y,Z)

I don;t get a mesh plot but the following error
message: 
error: surface: x, y, and z must have same dimensions
error: evaluating if command near line 114, column 7
error: evaluating if command near line 106, column 5
error: evaluating if command near line 76, column 3
error: called from `surface:__surface__' in file
`/usr/local/share/octave/3.0.0/m/plot/surface.m'
error: called from `surface' in file
`/usr/local/share/octave/3.0.0/m/plot/surface.m'
error: evaluating assignment expression near line 37,
column 7
error: called from `mesh' in file
`/usr/local/share/octave/3.0.0/m/plot/mesh.m'
error: near line 129 of file
`/home/proj/08/cesasha/aseasha/cabunbactoct.m'


Please explain. I don't understand where surface is
coming from. I used the matlab commands for mesh. Are
they the same for Octave 3.0 running on RHEL 4.0

Thanks
Asha 

 
   
   
   
  Goals too clearly defined can become blinkers. 
  Mary Catherine Bateson 



      


reply via email to

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