next up previous
Next: Contour plot of a Up: 2D and 3D plotting Previous: 3D surface

3D surface defined by a function

deff('[z]=surf(x,y)','z=sin(x)*cos(y)'); // Surface definition
t=-%pi:0.3:%pi;
fplot3d1(t,t,surf,35,45,"X@Y@Z");
xtitle('fplot3d : z=f(x,y), f external',' ',' ');
\fbox{\epsfig{file=foo0_14.eps,width=3.75in}}

Scilab group