1 visualizzazione (ultimi 30 giorni)
Jacob Savona il 22 Feb 2015
Risposto: Steve Miller il 22 Apr 2023
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 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
Stephen23 il 23 Feb 2015

Accedi per commentare.

### Risposte (1)

Steve Miller il 22 Apr 2023
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su MATLAB in Help Center e File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by