This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 12/08/2009 for the course AMATH 10211 taught by Professor Annegreenbaum during the Spring '09 term at University of Washington.
- Spring '09