Please Help!!!I am stuck and I am not very good at Physics.
2 次查看(过去 30 天)
显示 更早的评论
You are driving a car along a straight road for t = 50s. Assume that friction is negligible but drag is not, where F .5b(v_n-1)^2 , b is a given constant, and v_n-1 is the velocity at the previous time step. For the duration of the trip as described below, calculate the position, velocity, and netacceleration of the car. Use one or more for loops to simulate the behavior of the car starting at t = 0 until t = 50s, with Δ t = 0.5s. Using subplot(), plot the position, velocity, and net acceleration as functions of time on a single figure with a 3x1 subplot and label the axes.
a. Starting from rest, where initial position of x(0) = 0 and v(0) = 0, you apply an initial, constant acceleration of a = 3m/s , until you reach 65 mph. Upon reaching 65 mph, you maintain a constant velocity. b. At x = 275 m, you pass a speed limit 50 mph sign. Instead of braking, you let the car coast (i.e. no applied acceleration) for the rest of the drive.
c. At x = 1000 m, a police car is parked to the side of the road with a radar gun and needs to meet quota. Today, he is very strict about people not exceeding the speed limit and will pull you over if you do. If you continue to let the car coast, will you be able to slow down in time or will you get pulled over? Print the answer and the velocity just after you have passed the police car to the command window. m car = 1428.8kg (mass of car and you) b = 1.04N * s2/m2
回答(1 个)
Steve Miller
2023-4-22
See https://www.mathworks.com/matlabcentral/answers/179739-am-i-doing-this-right
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!