Plotting differential equations, need help

2 visualizaciones (últimos 30 días)
Andrew
Andrew el 6 de Oct. de 2014
Comentada: Yu Jiang el 6 de Oct. de 2014
y = diff(sin(2*pi*t))./diff(t);
plot(t,y)
Remember diff() shortens the length of your vector by one so you will need to define a new time vector to plot against. ---- how do i do this?
thank you

Respuesta aceptada

Yu Jiang
Yu Jiang el 6 de Oct. de 2014
plot(t(2:end),y)
  8 comentarios
Andrew
Andrew el 6 de Oct. de 2014
its ok, i fixed it. thanks for your help sir.
Yu Jiang
Yu Jiang el 6 de Oct. de 2014
You are welcome.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Mathematics 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!

Translated by