Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The position x(t) as a function of time of a particle that moves along a straigh

ID: 3786053 • Letter: T

Question

The position x(t) as a function of time of a particle that moves along a straight line is given by: x(t) = -0.1t^4 + 0.8t^3 + 10t - 70 The velocity v(t) of this particle is the derivative of the position function: v(t) = -0.4t^3 + 2.4t^2 + 10 Likewise, the acceleration a(t) of the particle is given by the derivative of the velocity: a (t) = -1.2t^2 + 4.8t Create one figure that contains all three of these functions vs t where 0 lessthanorequalto t lessthanorequalto 8. To plot these functions, use the plot command. Using the subplot command arrange the graphs into one column with 3 rows (Don't forget to include a title and axis labels.) Time Is in seconds; position Is in meters; velocity is in m/s; and acceleration is in m/s^2.

Explanation / Answer

clc;
clear all;
clear vars;

%copy and paste in an .m matlab file and run .
%Defining time intervals
t=0:1:8;

%Calculating position function points with t
x_t = @(t) -0.1*t.^4 + 0.8*t.^3 + 10*t - 70;

%Calculating velocity function points with t
v_t = @(t) -0.4*t.^3 + 2.4*t.^2 + 10;

%Calculating acceleration function points with t
a_t = @(t) -1.2*t.^2 + 4.8*t;

%Plotting first subplot
subplot(3,1,1)
fplot(x_t,[0 8]);
xlabel('Time (s)');
ylabel('Position (m)');
title('Position function graph x(t)');

%Plotting 2nd subplot
subplot(3,1,2)
fplot(v_t,[0 8]);
xlabel('Time (s)');
ylabel('Velocity (m/s)');
title('Velocity function graph v(t)');

%Plotting 3rd subplot
subplot(3,1,3)
fplot(a_t,[0 8]);
xlabel('Time (s)');
ylabel('Acceleration (m/s^-2)');
title('Acceleration function graph a(t)');

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote