How can I plot time data so that it starts at zero seconds?
20 次查看(过去 30 天)
显示 更早的评论
I have an uneven time data, and I want to get it to start at t=0 instead of 3.1. Basically, I just want to shift everything over 3.1 seconds. Here is the simple code. (My actual time data is much more complicated but if you can make this work then I can apply it to my data.) Thanks, Noah
time = [3.1 4.2 5.1 6.2];
y = [5 7 4 3];
plot(time,y)
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Gravitation, Cosmology & Astrophysics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!