% A demonstration of the figure feature % The feature uses the hold on function. So, you must be aware that % every graphical command will be buffered. % use "hold off" to come back to the common behavior. >function sinc(x) $ return sin(x)/x; $endfunction % Let's draw 2 rows of 2 subplots. % The window is set to draw the first one >figure([2,2]); >t=-10:0.01:10;x=sinc(t); >xplot(t,x);xlabel("t (s)",1);ylabel("x(t)",0); % Let's choose the second subplot >figure(2); >x=-1:0.05:1; y=x';density(x^2+y^3,1);contour(x^2+y^3,-10:0.1:10);setplot(-1,1,-1,1); xplot(); % The third one >figure(3); >view(5,1.5,0.8,0.5);huecolor(0); framedsolidhue(x,y,(x^2+y^3),x^2+y^3,2,1); huecolor(1); % The last one >figure(4);mesh(x^2+y^3); >