Systems of homogeneous equations

%        Systems of homogeneous equations.
%       To obtain a hardcopy delete the comments sign, %,
%       before the PRINT statement, or change it according
%       to the requirements of your system.

x = -3: 1/20: 6;
y1 = 2*x;
y2 = -x;
subplot(1, 2, 1)
plot(x, y1, x, y2), grid
title(‘a)’)
xlabel(‘x1’), ylabel(‘x2’)
text(-2, 11, ‘2*x1 – x2 = 0’)
text(3, -1.5, ‘x1 + x2 = 0’)
y3 = 2*x;
subplot(1, 2, 2)
plot(x, y1, x, y3), grid
title(‘b)’)
xlabel(‘x1’), ylabel(‘x2’)
text(-1, -5, ‘2*x1 – x2 = 0’)
text(-1, y3(30), ‘-6*x1 + 3*x2 = 0’)
% print