t=1:40;y=sin(0.5*t);
plot(t,y)
print -dmfile figurmfil