Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MAT 3 4 3 LAB 4 Problem 3 Download and run the LiveScript MAT 3 4 3 LAB 4 ex 3 . mlx ( for

MAT 343 LAB 4 Problem 3
Download and run the LiveScript MAT343LAB4ex3.mlx (for your convenoience a pdf version is also provided).
Adapt the procedure developed in the LiveScript, Example 6, to
37
ients
CLAS
AZ
es
bility
rse Policies
Rescale the axis by using axis (,2,2,-2,2)
Enter the rotation matrix that rotates counterclockwise by increments of 6 about the origin and store it in the variable Q.
Use Q and a for loop to rotate the square about the origin until the square is in its original location. Hint. think about how many times you y through the loop, keeping in mind that you are rotating the square counterclockwise for a full circle by increments of 6.
Enter the rotation matrix that rotates the square clockwise by increments of 6 about the origin and store it in the variable Q2.
Use Q2 and a for loop to rotate the square until it is in its original location again.
For your convenience the main part of the code, taken from Example 6, is included in the script box. Fill in the missing parts. Don't forget to include yc script.
NOTES:
When you Run the script, the animation will not show. To check that your animation is correct, it is recommended you create an Mand run it in MATLAB.
Don't forget to include your name in the script.
There is no partial credit on this problem.
Srrint?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions