derivation using command diff
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Respuestas (1)
John Petersen
el 28 de Nov. de 2012
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 comentarios
Ver también
Categorías
Más información sobre File Operations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!