derivation using command diff
1 次查看(过去 30 天)
显示 更早的评论
if x is position and t time
velocity=diff(x)./(diff(t)
acceleration=diff(x,2)./diff(t,2) or diff(x,2)./diff(t)
?
can anyone confirm?
回答(1 个)
John Petersen
2012-11-28
velocity = diff(x);
acceleration = diff(velocity);
You can verify it yourself with an example such as x=cos(t), v=sin(t), a=-cos(t)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!