How do I convert displacement to velocity and acceleration when given displacement

I got the displacement(d) curve and time(t) from 1-3600s, so velocity(v)=d/t, or v=d(i)/t(i)? if v=d(i)/t(i), how to write this?

 Respuesta aceptada

Dishant Arora
Dishant Arora el 10 de Jul. de 2013
Editada: Dishant Arora el 10 de Jul. de 2013
v = diff(d)./diff(t)
diff gives the approximate derivate.

8 comentarios

you mean v=diff(d)/diff(t), or diff(v)=diff(d)/diff(t) ?
My mistake!! I have made the required changes
why it show up: error using ./
What error does it shows?
when I plot(t,v);
v is actually 1 element shorter than t. So, if you want to plot v against t ,you'll need to append a zero with v.
how to append zero to v? As i am facing the same problem
how to append zero to v? As i am facing the same problem
v(end)=0

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 10 de Jul. de 2013

Comentada:

el 7 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by