Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This question is based on MATLAB there are a-f small parts in this question Thank you so much in advance! (a) (1 mark) Create a
This question is based on MATLAB there are a-f small parts in this question
(a) (1 mark) Create a matrix V with two columns in which every row represents a vertex of an irregular polygon. For example V= [00; 1 0; O 1; 1 1] represents a square (4 vertices). Note that it is expected that each student creates a different polygon. (b) (1 mark) Using MATLAB's polyshape command and your matrix V, create a polyshape called p and plot it. (c) (1 mark) Apply a dilation matrix to your matrix V, Vd=V*[2 0; 0 2). Create a polyshape using the transformed matrix Vd and plot it. (d) (2 marks) Rotate your polygon counterclockwise by and plot the result. (e) (2 marks) Horizontally shear your polygon by a factor of 1 to the right and plot the result. (f) (3 marks) Plot the polygon which results from applying the horizontal shear in part (e) followed by the rotation in part (d) Thank you so much in advance!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started