How can I offset time and displacement at the end of a defined time?

Respuestas (1)

hello
you can simply add 60 (or any value ) to your time vector (assuming you have defined one) :
plot(time+60,data)

5 comentarios

Thanks for the response. I want to get zero displacement and time at the end of the 60s
.
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) ?
Hi, sorry its my bad. I had to explain what I want to do. I need to offset both time and displacement such that they are both zero at the end of the preload (60s in absolute time). First 60 s is preload. Thanks
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))
thanks a lot

Iniciar sesión para comentar.

Categorías

Más información sobre Descriptive Statistics and Insights en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 28 de Mzo. de 2021

Comentada:

el 31 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by