Ltrans - A=[0 1; 1 0]; %reflection across x = y p=A*S;...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%script file: ltrans trapezoid %Harrison Jackson t=linspace(-2,7,15); x1 = 2; y1 = 0; x2 = 1; y2 = 1; x3 = -1; y3 = 1; x4 = -2; y4 = 0; x = [x1 x2 x3 x4]; y = [y1 y2 y3 y4]; S=[x; y]; figure plot(x,y) axis equal title(' ORIGINAL TRAPEZOID ') A = [1/2 -sqrt(3)/2; sqrt(3)/2 1/2]; %rot 60 p = A*S; figure plot(p(1,:), p(2,:)) axis equal title(' Rotated by 60 degrees ')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: A=[0 1; 1 0]; %reflection across x = y p=A*S; figure plot(p(1,:), p(2,:)) axis equal title(' Reflected Across X=Y ') A=[3 0; 0 1/4]; %contraction and expansion p = A*S; figure plot(p(1,:), p(2,:)) axis equal title(' Expanded in X and Contracted in Y ') A=[1 4; 0 11]; p = A*S; figure plot(p(1,:), p(2,:)) title(' Sheared ' )...
View Full Document

Ask a homework question - tutors are online