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)?

 採用された回答

Youssef  Khmou
Youssef Khmou 2013 年 3 月 13 日

0 投票

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 件のコメント

Youssef  Khmou
Youssef Khmou 2013 年 3 月 13 日
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

サインインしてコメントする。

その他の回答 (2 件)

Eman Basm
Eman Basm 2017 年 12 月 3 日

1 投票

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 件のコメント

the cyclist
the cyclist 2017 年 12 月 3 日
You've asked your question by putting it as an answer in a 4-year-old question. Almost no one will see it here. (It was almost coincidental that I saw it.)
I suggest that you try again, and be sure to make it a new question. Also, you should add significantly more detail to your question, because it is not clear what you are asking for. (Include your code, too, if that is possible.)
Eman Basm
Eman Basm 2017 年 12 月 22 日
the cyclist thanks your response this is a code after reading more this function to perceptron network, net.adapt param.passes=20, what is param.passes? I know the adapt is function work with perceptron net.
Walter Roberson
Walter Roberson 2017 年 12 月 22 日
That is not relevant to the Question here. You should use a distinct Question for that.

サインインしてコメントする。

the cyclist
the cyclist 2013 年 3 月 13 日

0 投票

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.

カテゴリ

ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索

製品

質問済み:

2013 年 3 月 13 日

コメント済み:

2017 年 12 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by