Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Entity Alignment Concepts Recent Advances And Novel Approaches

Authors: Xiang Zhao ,Weixin Zeng ,Jiuyang Tang

1st Edition

9819942527, 978-9819942527

More Books

Students also viewed these Databases questions

Question

e. Compute R2 and .

Answered: 1 week ago

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago