Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Download and run the LiveScript MAT 3 4 3 LAB 4 ex 7 . mlx ( for your convenoience a pdf version is also provided
Download and run the LiveScript MATLABexmlx for your convenoience a pdf version is also provided
Consider the square in EXAMPLE in the livescript. The goal of this exercise is to bring back the square to its original position by first translating it horizontally to the left units using iterations, and then rotating it counterclockwise radians around the point using iterations. This can be done by modifying the code in EXAMPLE by adding two for loops. The first loop should translate the square while the second should rotate it around the point
Here are the specific instructions:
Enter the translation matrix that translates horizontally to the left units using iterations and store it in the variable M
Use the matrix M and a for loop to translate the squrae.
Enter the rotation matrix that rotates around the point and store it in QP
Use the matrix QP to rotate the square ccounterclockwise around the point using iterations for a total angle of
For your convenience the main part of the code, taken from Example is included in the script box. Fill in the missing parts. Don't forget to include your name in the script.
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