Question: MATLAB model with drag force My Solutio Background: You will be using a MATLAB model with air resistance included to predict the path of the

MATLAB model with drag force My Solutio Background: You will be using a MATLAB model with air resistance included to predict the path of the ping pong ball. Since the drag force due to the air always opposes the motion of the ball, the system can not be modeled in a "closed form" way. In a closed form solution you can just write an equation and solve it. Instead this has to be done in an iterative fashion. Your Task: Copy the code into Matlab to open and review it. Here are the parts: Initialize Variables - Use the comments to figure out what these are. Student developed code - A section for you to imput code that uses a while loop to calculate the motion of the ping pong ball. The spaces that need code are called out with **** and a hint inside about what is missing. Note the variable names suggested in these hints so that the rest of the code will work once those things are added. %*** Plotting of final values - This plot should look like the following. distance traveled by ping pong ball in meters vertical distance traveled (meters) 4 6 8 10 horixontal distance traveled (meters) 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
