Question: in matlab, please help with this quick function in matlab programming Input function t - collision Prediction (ml, m2, vi, E) Type Description 1x1 double
Input function t - collision Prediction (ml, m2, vi, E) Type Description 1x1 double Mass of box 1 (kilograms) 1xl double Mass of box 2 (kilograms) 1x1 double Velocity of box 1 (m/s) 1xl double Coefficient of friction Type Description 1x1 double Time in motion after collision Output Details mu m2 02 = 0 f=0 Box 1 (with mass mi) is sliding with a velocity tj on a smooth surface and is going to hit a static box 2 (with mass m2). Suppose there is a perfectly inelastic collision between the two boxes (i.e., the two boxes will combine into one body) and momentum is conserved. Thus, after collision the velocity of the combined boxes u can be described by: mi. mi + m2 The combined boxes will then continue to slide onto a coarse surface with coefficient of friction f, which is given by the equation: Fy = f.G where F, is the frictional force, G = (m + m2).g is the combined weight of the boxes, and f is the friction coefficient. Based on Newton's Second Law of Motion, the deceleration is given by a=f.g. In this problem, you are required to find the time t when the combined box stops. You will write the function collisionPrediction that has the inputs mi, m2, f, and vi and outputs the time t it takes for the combined boxes to stop. Tips 9 = 9.81 m/s
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
