A=sin([1:1024]*2*pi/1024)

h=figure; plot(A)

print(h, '-dpng', '~/Matlab/sin.png')

exit
