function of time,velocity and acceleration
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
marie
am 13 Mär. 2013
Kommentiert: Walter Roberson
am 22 Dez. 2017
the position x as a function of time of a particle that moves
along a straight line is given
>>>x(t)=0.4*t^4+10.8*t^3-64.4*t^2-28.2*t+4.4 ft
a)derive the expression for the velocity v(t)
which i did and is v(t)=1.6 t^3 + 32.4t^2-128.8t -28.2
b)derive the expression for the acceleration
which is a(t)=4.8t^2+ 64.8 t -128.8
c)make plots of the position,velocity and acceleration as a function of time in an increment of 0.1s for 0<=t<=8
my question is for part c do i just need to use the command plot(x,v,a)?
0 Kommentare
Akzeptierte Antwort
Youssef Khmou
am 13 Mär. 2013
hi try :
syms t
x=0.4*t.^4+10.8*t.^3-64.4*t.^2-28.2*t+4.4
x=(0.4*t.^4)+(10.8*t.^3)-(64.4*t.^2)-(28.2*t)+4.4
v=diff(x)
a=diff(v)
t=0:0.1:8-0.1;
X=subs(x,t);
V=subs(v,t);
A=subs(a,t);
figure, plot(t,X,t,V,'r',t,A,'g')
legend(' Position','Velocity','Acceleration')
the result is the same?
1 Kommentar
Youssef Khmou
am 13 Mär. 2013
hi,you can use :
plot(t,X,t,V,'r',t,A,'g') % velocity in RED and accel in Green
or
plot(t,X)
hold on
plot(t,V,'r'); % or any other color you wat
plot(t,A,'g');
hold off
Weitere Antworten (2)
Eman Basm
am 3 Dez. 2017
Hello, I want to train my data in neural network model my question about the input of neural model my data some of it one value and others vector I do not know if that affect because different in values should be all inputs one value
3 Kommentare
Walter Roberson
am 22 Dez. 2017
That is not relevant to the Question here. You should use a distinct Question for that.
the cyclist
am 13 Mär. 2013
I think the question is asking for
plot(t,x)
plot(t,v)
plot(t,a)
You will need to define the increment of t as a vector, as describe in the question.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Pattern Recognition and Classification finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!