# MAT 343 ASU Plotting and Computer Animation In MATLAB Project

User Generated

znevylaronffbhybh

Mathematics

MAT 343

Arizona State University

MAT

## Description

Work on file (lab4) see more information in that file in there. Make it as Miccrosoft word

### Unformatted Attachment Preview

Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Here is your lab :)Exercises 3, 4, 6, 7 are not included figure in the document since it was stated on the instruction but hwen you run the code, you will their outputs :).. The zip file and the matlab files of each exercises and you can run them one by one :). If you have questions, please let me know.

1

MAT 343 Laboratory 4
Plotting and computer animation in MATLAB
EXERCISE 1:
% Exercise 1
clf
S =[0 ,1 ,1 ,0 ,0;0 ,0 ,1 ,1 ,0];
plot(S(1,:),S(2,:),'linewidth',2)
hold on
T =[1 ,2;0 ,1]; % shear transformation matrix
TS = T * S ;
plot(TS(1,:),TS(2,:),'-r','linewidth',2)
title ('Example of horizontal shear ')
legend (' original square ','sheared square',' location ',' southeast ')
axis equal , axis ([ -1 ,3 , -1 ,3]); grid on % adjust the axis and the
window
hold off

Output:

Figure 1: Exercise 1

EXERCISE 2:
%EXERCISE 2
clf

2
S =[0 ,1 ,1 ,0 ,0;0 ,0 ,1 ,1 ,0];
plot(S(1,:),S(2,:),'linewidth',2)
hold on
Q = [cos(pi/4), -sin(pi/4); sin(pi/4), cos(pi/4)];
T =[1 ,2;0 ,1]; % shear transformation matrix
TQS = T * Q * S ;
plot(TQS(1,:),TQS(2,:),'-r','linewidth',2);
title (' 45° Reflection together with the original square ')
legend (' original square','modified square ')
axis equal , axis ([-1,3,-1,3]); grid on % adjust the axis and the window
hold off

Output:
...

### Review

Anonymous
I was stuck on this subject and a friend recommended Studypool. I'm so glad I checked it out!

Studypool
4.7
Indeed
4.5
Sitejabber
4.4