The position x as a function of time of a particle that moves along a straight l
ID: 3774617 • Letter: T
Question
The position x as a function of time of a particle that moves along a straight line is given by: x(t) = (-3+4t)e^-0.4t ft The velocity v(t) of the particle is determined by the derivative of x(t) with respect to t, and the acceleration alpha(t) is determined by the derivative of v(t) with respect to t. Derive the expressions for the velocity and acceleration of the particle, and make plots of the position, velocity, and acceleration as functions of time for 0 lessthanorequalto t lessthanorequalto 20 s. Use the subplot command to make the three plots on the same page with the plot of the position on the top, the velocity in the middle, and the acceleration at the bottom. Label the axes appropriately with the correct units. Using matlab code for below problem Growth data of a sunflower plant is given in the following table: The data can be modeled with a function in the form H = C/(l +Ae^-Bt) (logistic equation), where H is the height, C is a maximum value for H, A and B are constants, and t is the number of weeks. By using the method described in Section 8.2.2, and assuming that C = 254 cm, determine the constants A and B such that the function best fit the data. Use the function to estimate the height in week 6. In one figure, plot the function and the data points.Explanation / Answer
P25)
% start the script
X= [1 3 5 7 9 11 13];
H= [22 51 127 202 227 248 252];
Y= [10.5454 3.9804 10.2574 0.1189 0.0242 0.0079];
C=254;
P=polyfit(x, log(y), 1);
A=exp (p (2))
B=-p (1)
X1= [1:1:13];
H1=c. / (1+A*exp (-B*x1));
Fprintf (‘the height in cm in week 6 =%6.2f ’, c/ (1+A*exp (-B*6)))
Plot (x, H,’0’)
Hold on
Plot(x1, h1)
Title (‘height vs number of weeks ‘)
Xlabel (‘t (weeks)’);
Ylabel (‘height (cm)’);
The mat lab output :
A=21.1829
B=0.6058
The height in week 6=162.92cm
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.