Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. 3410 Y B A X An object starts at rest at a point A and moves with constant acceleration to a point B. Write
3. 3410 Y B A X An object starts at rest at a point A and moves with constant acceleration to a point B. Write a MATLAB functi named travelTime that will compute the time it took the object to travel between the two points given three input variables: 1. the xy coordinate of the first point as a 1x2 matrix 2. the xy coordinate of the second point as a 1x2 matrix 3. the acceleration of the object The return of the function should be a single output containing the time of travel. Notes: Example test case: t = travelTime([3,2],[7,8],0.2) results in t=8.4918 To compute the travel time, you can assume constant acceleration and no initial velocity, and use the equation 2d t= a where t is the travel time, d is the distance between the two points, and a is the acceleration Do not include any test cases in the answer you submit
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