clf;
x=[ -3:.05:3];
y = x.^3-3*x;
plot(x,y);
%hold on;

xmin=-3;
xmax= 3;
ymin=-4;
ymax= 4;
axis([xmin xmax ymin ymax]);
h1=line([xmin xmax], [0 0]);
set(h1, 'LineStyle', '--');
h2=line([0 0], [ymin ymax]);
set(h2, 'LineStyle', '--');

set(gca, 'XTick', [xmin:1:xmax])
set(gca, 'YTick', [ymin:1:ymax])

set(gcf, 'PaperPositionMode', 'Manual');
set(gcf, 'PaperPosition', [0 0 6 1.5])
print -depsc exam_01_fig_06

