Question: My role number is = 3 0 2 0 2 Develop a generalize MATLAB code to * perform the following transformations on a pentagon defined

My role number is =30202
Develop a generalize MATLAB code to * perform the following transformations on a pentagon defined by the points A, B, C, D, and E, where the coordinates are based on the last two digits of your roll number: (Function for generation of the coordinates of pentagon is provided below)
please tell me all detailed coding like as beginer
A: (X1, Y1)
B: (X2,Y2)
C: (X3, Y3)
D: (X4, Y4)
E: (X5, Y5)
Perform the following transformations on the pentagon:
a) Translation of all the points by (60,70) in x and y directions.
b) Shear the original pentagon with shy =2.
c) Rotate the original pentagon about the y-axis by 30 degrees.
d) Reflect the whole pentagon about the y-axis.
Plot all transformations in a single figure window.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mechanical Engineering Questions!