
%A TRASLAÇ~AO

tri=[0 1 0 0;0 0 2 0];
line(tri(1,:),tri(2,:))
hold on
axis([-3 3 -3 3])


tri=[tri;ones(1,4)];
M=[1 0 .2;0 1 0; 0 0 1];   %matriz de traslaç~ao

% TRASLAÇ~OES SIMULTANEAS
for i=1:5
tri=M*tri
line(tri(1,:),tri(2,:))
end
 