Question

In: Mechanical Engineering

Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a...

Using MATLAB:

The velocity, v, and the distance, d, as a function of time, of a car that accelerates from rest at constant acceleration, a, are given by

= a n d = 12

Determine v and d at every second for the first 10 seconds for a car with acceleration of = 15 ft/s2. Your output must have exactly the same format as the template table below. Note that dots have been added to the table below; you can count the dots to determine the exact spacings. Also note the units.

··········Time (s) ······· ···Distance (ft) ·········Velocity (mph) ··········x.x·················x.xxe+yy···············x.xxx

Solutions

Expert Solution

MATLAB CODE

clear
clc;
a = 15; %ft/s2 (acceleration)
for i = 1:10
    t(i) = i; %time span
    d(i) = 12 + (1/2)*a*t(i)^2; % initial distane is 12 ft.
    v(i) = a*t(i)*(3600/5280); % 1 mile = 5280 ft and 1h =3600 sec
end
table = [t' d' v']

Ans

Time(s) Distance(ft) velocity (mph)
1.0000      19.5000 10.2273
2.0000    42.0000 20.4545
3.0000      79.5000 30.6818
4.0000     132.0000 40.9091
5.0000    199.5000 51.1364
6.0000    282.0000 61.3636
7.0000     379.5000 71.5909
8.0000     492.0000 81.8182
9.0000     619.5000 92.0455
10.0000    762.0000 102.2727

Related Solutions

matlab use matlab to calculate the velocity of the vertical falling ball (v) as a function...
matlab use matlab to calculate the velocity of the vertical falling ball (v) as a function of time by numerical derive the following measurement values.(x is height in meters and y is the landing time in milliseconds) Make sure that the speed in the starting point is 0. Then reset instantaneous velocity as a function of time in a diagram with matlab x=[0.00 0.20 0.40 0.60 0.80 1.00 1.20 1.50 2.00 2.50 3.00 3.40 3.80 4.20 4.60 5.0] y=[[0.00 1.620...
Q1. For the given velocity distribution in a pipe:    where v(r)=velocity at a distance r...
Q1. For the given velocity distribution in a pipe:    where v(r)=velocity at a distance r from the centerline of the pipe, V0=centerline velocity, and R=radius of the pipe. Find the average velocity, energy and momentum correction factors.
how to create a function to compute PACF of a time series in MATLAB without using...
how to create a function to compute PACF of a time series in MATLAB without using built-in function ''parcorr''?
MATLAB question The range of a projectile launched at velocity V and angle q is R=2...
MATLAB question The range of a projectile launched at velocity V and angle q is R=2 V2 sin(q) cos(q) Find the range if V=20m/s and q=30 degrees (5 pts) If the uncertainty in the launch angle q = 30 +/- 2 degrees, what is the uncertainty of the range What should the accuracy of the launch angle have be to keep the uncertainty of the range to within 5%.
Write a MATLAB script or function that returns the required initial velocity of the ping pong...
Write a MATLAB script or function that returns the required initial velocity of the ping pong ball required to launch it a specified distance. Use projectile motion equations. Keep in mind that the initial firing height will change depending on the proposed catapult design. Primary considerations in the catapult design are accuracy and repeatability as groups will be tasked with hitting the target (cup) repeatedly at distances ranging from 7 to 9 ft. (cup moved in 6 in. increments).
A particle moves along a line with velocity function ?(?) = ?^2 − ?, where v...
A particle moves along a line with velocity function ?(?) = ?^2 − ?, where v is measured in meters per second. a. Find distance traveled by the particle in time interval [0, 6] seconds. b. Find the net displacement. 8. Estimate the area from -1 to 9 under the graph of f(x) = 81 – x^2 using five approximating rectangles and midpoints as sample points.
For example, a definite integral of a velocity function gives the accumulated distance over the period....
For example, a definite integral of a velocity function gives the accumulated distance over the period. You should also be growing more comfortable with how the units work – for example, integrating meters per second with respect to seconds gives meters.Your job is to find an article that refers to a definite integral. It is possible that you will be able to find an explicit mention of a definite integral. Much more likely, though, the definite integral will be implied...
Using MATLAB plot path loss prediction versus distance and log distance for a cellular system you...
Using MATLAB plot path loss prediction versus distance and log distance for a cellular system you are designing with the following assumptions: PCS frequency (1900 MHz), base height 20 m, mobile 2 m, suburban area, flat terrain with moderate tree density.
2. The data of the velocity of a body is given as a function of time...
2. The data of the velocity of a body is given as a function of time in the table below. Determine the value of the velocity at t=16 seconds using: (this is the table) t(s) 0 15 18 22 v(t) 22 24 37 25 a) Newton’s divided difference first order polynomial method. b) Newton’s divided difference second order polynomial method. c) Newton’s divided difference third order polynomial method.
Write a simple matlab program to model the position, velocity, and acceleration over time of Ruchardt's...
Write a simple matlab program to model the position, velocity, and acceleration over time of Ruchardt's experiment as a harmonic oscillator.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT