How can I offset time and displacement at the end of a defined time?
Mostrar comentarios más antiguos
I'd like to offset time and displacement up to 60 secs in my data but couldn't figure it out.

Respuestas (1)
Mathieu NOE
el 29 de Mzo. de 2021
hello
you can simply add 60 (or any value ) to your time vector (assuming you have defined one) :
plot(time+60,data)
5 comentarios
mehtap agirsoy
el 29 de Mzo. de 2021
Mathieu NOE
el 30 de Mzo. de 2021
hello
sorry , I am not sure to understand . You would like the displacement curve to achieve y = 0 when t = 60 s ?
what does t = 60 s mean in your plot (as it covers much more than 60 s) ?
mehtap agirsoy
el 30 de Mzo. de 2021
Mathieu NOE
el 30 de Mzo. de 2021
ok
so if your time vector start with initial value time(1) = 60 s
and the y first value is y(1)
what you want to plot is :
plot(time-time(1),y-y(1))
mehtap agirsoy
el 31 de Mzo. de 2021
Categorías
Más información sobre Descriptive Statistics and Insights en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
