Unformatted text preview: % Perform rotation. R = [cos(theta) sin(theta); sin(theta) cos(theta)]; U = R*U; if i==1, fill(U(1,:),U(2,:),'b'); end; % Use different colors for rotated triangles. if i==2, fill(U(1,:),U(2,:),'g'); end; if i==3, fill(U(1,:),U(2,:),'c'); end; end; axis equal tight, grid on...
View
Full Document
 Spring '09
 ANNEGREENBAUM
 Rotation, Linear map, Red triangle

Click to edit the document details