Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED A MATLAB CODE FOR ALL THE PARTS. PLEASE HELP WITH THIS. WILL UPVOTE IF IT WORKS. THANK YOU. - Create the following two-element vector

NEED A MATLAB CODE FOR ALL THE PARTS. PLEASE HELP WITH THIS. WILL UPVOTE IF IT WORKS. THANK YOU.

image text in transcribedimage text in transcribed

- Create the following two-element vector and store it as the numeric array L. [1.21.5] - Create a 2-row numeric array, T, containing angles between 0 and 90. Row 1 should contain angles from 45 to 90, ascending in 1 increments. Row 2 should contain angles from 45 to 0, descending in 1 increments. Reminder: All subsequent code should be written such that if the contents or number of rows or columns contained in the variables L or T changes, the statements will still correctly execute. - Create a new section, titled Calculations. The image to the right depicts a two-link planar robot. The x-coordinate of the tip of the robot is given by the equation below. x=L1cos(1)+L2cos(1+2) The numeric array L contains the arm lengths in feet [ft] for one robot. L1 is the first element and L2 is the second element. Each column in the numeric array T contains an angle combination in degrees. Row 1 contains 1 and Row 2 contains 2. We are interested in calculating the tip position for several of these angle combinations. Using the values you have stored in L and T, calculate the following: - x-coordinate of the tip of the robot for the angle combinations in Columns 25 through 30. - Store the results in the vector X. (Do not suppress the output for this instruction so that the values in the vector, X, are outputted.) - Using the values stored in X, perform the following calculation and store the result in the vector Q. (Do not suppress the output for this instruction so that the values in the vector, Q, are outputted.) Q=e5nln(X) - Using the values stored in X, perform the following calculation and store the result in the vector Q. (Do not suppress the output for this instruction so that the values in the vector, Q, are outputted.) Q=e5ln(X)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

In Exercise 40 what is the

Answered: 1 week ago