[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Need help with gsplot
From: |
J. Drews |
Subject: |
Need help with gsplot |
Date: |
Sun, 21 Oct 2001 22:40:19 -0500 |
Hi:
I am having trouble getting a nice 3d plot with gsplot.
I have created a function called potential like so:
function w=potential(x,y)
w=1.0./sqrt(x.^2+y.^2);
endfunction,
In Octave I do the following:
octave:1> X=[1.0:0.01:5.0]';Y=[1.0:0.01:5.0]';
octave:2> Z=potential(X,Y);
octave:3> data = [X,Y,Z];
octave:4> gsplot [1:5] [1:5] [] data
However the resulting 3D plot has a very corse mesh. Is this the proper way
to use gsplot? Is there a mesh size setting? I see that mesh and meshdom are
alternate commands for 3D. TIA.
--
Cheers,
Jonathan
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Need help with gsplot,
J. Drews <=