Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. (2 pts) Create a new function definition m-file named CalcTrajectory. 3. In the initial comments for your function, include: A line with your name,
2. (2 pts) Create a new function definition m-file named CalcTrajectory. 3. In the initial comments for your function, include: A line with your name, class section, lab number, and the date. The names of anyone you helped or that helped you as you worked on this lab. 4. (8 pts) Include explanatory comments throughout your function to make the code more readable. Also, use variables names that are distinct from the variables names in the Lab_03_Script.m script file. 5. (5 pts) Function Inputs: initial height ho, initial velocity V, initial trajectory angle 9, room height hceil, and distance to the room wall dwall (in this order). 6. (10 pts) Function Outputs: I and y coordinates of the ball as row arrays, and the time t, at which the ball first impacts something (in this order). 7. (10 pts) In your function, define a time vector with 1000 evenly spaced data points initially, starting from time 0 seconds and ending at the time the ball impacts the wall. Prelab: Solve algebraically for the time that the ball impacts the wall, assuming it does not hit the floor or ceiling beforehand. 8. (15 pts) Using the following kinematics equations x= 10 + Vt y = y + V,t - calculate the r and y positions of the ball from your time vector. Prelab: Determine V, and V, based on the given information. Also, look up the value of gravitational acceleration g in units of ft/s
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