How do I use a timevector of format HH:MM:SS created using datestr in creating a timeseries object?
2 次查看(过去 30 天)
显示 更早的评论
I had created a timevector using datestr function. This timevector needs to go in place of timevalues in the timeseries function. But when I create the timeseries object I am getting number values in the time values, and not in the HH:MM:SS format. The time values in the timeseries object are of the format 

time=datestr(total,'HH:MM:SS'); % total is the no. of days from matlab reference
Ts=timeseries(field/1000,time);
0 个评论
采纳的回答
Walter Roberson
2019-3-29
编辑:Walter Roberson
2019-3-29
You have to set the Timeinfo Units and Format properties
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genomics and Next Generation Sequencing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!