Ltrans

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

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

%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 ')
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

## This note was uploaded on 11/11/2009 for the course MATH 3353 taught by Professor Thomashagstrom during the Spring '09 term at SMU.

Ask a homework question - tutors are online