Answered step by step
Verified Expert Solution
Question
1 Approved Answer
**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
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
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