How can I achieve similar functionality to the "time2num" function without using the Predictive Maintenance Toolbox in MATLAB R2024b?
显示 更早的评论
I am working with datetime arrays that I would like to convert to numeric vectors. In particular, each element of the numeric vector should indicate the number of days that have elapsed between the corresponding datetime array element and the first datetime array element.
I saw that the "time2num" function can implement this workflow easily. However, I don't have access to the Predictive Maintenance Toolbox.
Are there any ways I can achieve a similar workflow without the "time2num" function?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Manage System Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!