Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do not answer problem 3, use problem 3 for referenceto answer question 1, by writing in the matlab code for question 1 a-d 3.

Please do not answer problem 3, use problem 3 for referenceto answer question 1, by writing in the matlab code for question 1 a-d image text in transcribed
image text in transcribed
3. a) Rotation of coordinates of a point (x.) about the origin can be carried out by ' cos(0) x-sin(0) y y-sin() x+cos(6)y o()ino) ysin(e) cos() y Where (x, y) is the coordinates of the point p, (x'y) is the new coordinates of the point p after rotation with angle in degrees. Write a function rotate.m file that can carry the calculation of nev coordinate after rotation using equations above. function np - rotate(p,theta) b) Write a script file to test the function by using a triangle with coordinates pl-[1 1], p2-13 7) and p3-12 5] rotate 30 degrees. Plot triangles before and after its rotation (use fill or plot commands) (note: keep your files for the continuation on Exercise 10)

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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

Define cytokine.

Answered: 1 week ago