Question: **Matlab Only My code so far rotate= @(cosd,asind,sind) [cosd asind 0; sind cosd 0; 0 0 1]; v1 = rotate(45) * rotate(45) * [5;12;1] v2

**Matlab Only

**Matlab Only My code so far rotate= @(cosd,asind,sind) [cosd asind 0; sind

My code so far

rotate= @(cosd,asind,sind) [cosd asind 0; sind cosd 0; 0 0 1]; v1 = rotate(45) * rotate(45) * [5;12;1] v2 = rotate(90) * [5;12;1]

Question 5: Create an anonyous function for rotate(d). This function should return the matrix R shown below. The angle d is in degrees. You must use cosd and sind, not cos and sin! cos d-sind |sin d cos d Be sure your trig functions handle degrees. Get help on both cos and cosd. R 0 Question 5: Show your inline code for the anonymous function rotate(d) Paste code here: Calculate both vectors and paste in the result, Does vi-v2? vi-rotate (45) rotate (45) * 51211 v2 - rotate (90) *[5;12;1]

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 Databases Questions!