help-octave
[Top][All Lists]
Advanced

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

surface plot


From: address@hidden
Subject: surface plot
Date: Tue, 17 Aug 2010 10:31:25 +0000 (GMT)

Hi all,

since some time, I try to plot some simple data as a surface plot, but something
seems to be strange.

First, 
I have to work on windows (it's on the office pc), so I'm currently using:
windows vista, and the newest windows-
version of octave, 3-2-4

Everything runs perfectly, except the current problem.

Sample 1, still running:

=====================
xx = linspace(1,12,50);
yy = linspace(2,9,50);
zz = linspace(0.4,2000,50);

[x2,y2] = meshgrid(xx,
yy);
z2 = x2.^2 + y2.^2;
surface(x2,y2,z2);

Sample 2, not running:
=====================
xx = linspace(1,12,50);
yy = 
linspace(2,9,50);
zz = linspace(0.4,2000,50);

[x2,y2,z2] = meshgrid(xx,yy,zz);
surface(x2,y2,z2);

following error 
occures:
========================
h = -5.5609
error: invalid value for array property "xdata"
error: set: expecting 
argument 2 to be a property name
error: set: expecting argument 4 to be a property name
error: set: expecting argument 
6 to be a property name
error: called from:
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\surface.m at 
line 1
50, column 7
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\surface.m at line 5
1, column 5

error:   c:\users\scm696\Documents\10002_Optimisation\octaveScript.m at line 32,
 column 1
error: __go_draw_axes__: 
invalid grid data
error: called from:
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\__go_draw_axes__.m

at line 903, column 8
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\__go_draw_figure__.
m at line 92, 
column 3
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\gnuplot_drawnow.m a
t line 99, column 5
octave-
3.2.4.exe:40>

What's wrong? I can't find any samples with meshgrid(x,y,z) only with 
meshgrid(x,y)!

Thanks for some 
help

Michael













reply via email to

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