Creating a time vector
5 次查看(过去 30 天)
显示 更早的评论
Silly question:
How do I create a time vector from scratch, say beginning in 1981 and ending in 2010?
Thanks
采纳的回答
Jan
2013-7-8
It depends on what a "time vector" is. Perhaps a datenum vector with a step size of days?
v = datenum(1981, 1, 1):datenum(2010, 11, 31);
A similar approach works for a stepsize of seconds or hours etc.
3 个评论
pruth
2018-5-21
hi, and what if I want this time vector with 1 min interval.? how to make it possible?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Time Series Objects 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!