datetime variables from a timerange
显示 更早的评论
I have a timerange variable with a start time and end time. Is there a way extract those datetime values from a timerange variable?
2 个评论
Walter Roberson
2020-10-21
Do you mean a timeseries object? You can use linspace between start and end time based on number of elements
J. Alex Lee
2020-10-22
Walter, timerange is a datatype used to index timetables (and maybe do other things).
i have not had luck with this either. if i recall correctly, you can't "char" a timerange right? but since presumably you create your timerange variable from 2 datetimes, just save those as their own variables first?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!