clf;

xmin=-4;
xmax= 4;
ymin=-4;
ymax= 4;

x1=[-4:.05:-1];
x2=[-1:.05: 2-.05];
x3=[ 2:.05: 4];

y1 = 2;
y2 = abs(x2);
y3 = -x3;

%plot([-1], [ 2], 'o', 'MarkerEdgeColor', [0 0 0], 'MarkerFaceColor', [1 1 1], 'MarkerSize', 4);
%hold on;
%plot([-1], [ 1], 'o', 'MarkerEdgeColor', [0 0 0], 'MarkerFaceColor', [0 0 0], 'MarkerSize', 4);
%hold on;
%plot([ 2], [ 2], 'o', 'MarkerEdgeColor', [0 0 0], 'MarkerFaceColor', [1 1 1], 'MarkerSize', 4);
%hold on;
%plot([ 2], [-2], 'o', 'MarkerEdgeColor', [0 0 0], 'MarkerFaceColor', [0 0 0], 'MarkerSize', 4);
%hold on;

%plot(x1,y1);
%hold on;
%plot(x2,y2);
%hold on;
%plot(x3,y3);

plot([-4],[-4]);
hold on;
plot([-4],[ 4]);
hold on;
plot([ 4],[-4]);
hold on;
plot([ 4],[ 4]);
hold on;

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])

%xlabel('x');
%ylabel('f(x)');
set(gcf, 'PaperPositionMode', 'Manual');
set(gcf, 'PaperPosition', [0 0 6 1.5])
print -depsc exam_01_fig_07

