How can I offset time and displacement at the end of a defined time?
5 次查看(过去 30 天)
显示 更早的评论
I'd like to offset time and displacement up to 60 secs in my data but couldn't figure it out.
0 个评论
回答(1 个)
Mathieu NOE
2021-3-29
hello
you can simply add 60 (or any value ) to your time vector (assuming you have defined one) :
plot(time+60,data)
5 个评论
Mathieu NOE
2021-3-30
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))
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!