Script:
t=%pi*(-10:10)/10;
deff('[z]=surf(x,y)','z=sin(x)*cos(y)');
rect=[-%pi,%pi,-%pi,%pi,-1,1];
z=feval(t,t,surf);
plot3d(t,t,z,35,45,'X@Y@Z',[-20,1,3],rect);
xset('alufunction',0);
contour(t,t,z,10,35,45,'X@Y@Z',[0,1,0],rect);
xtitle('plot3d and contour',' ',' ');
This demo draw a surface and contour line of it.
1.If you input the scripts and send to the Server
step by step, you will see the screen changes like
the picture below.
And you can receive three pictures in your machine.
2.But if you send the scripts one time to the Server
,you will one picture.
<<Previous Next>>
|