How to extract elements from datetime variable
显示 更早的评论
I have a datetime variable of 1048576x1 elements, I can convert the format to various options, including showing the days of the week (which is what I am interested in). However, I need to find certain elements in the variable corresponding to a specific day. How can this be done?
回答(2 个)
KSSV
2018-8-1
0 个投票
REad about datevec. With this you can get year, month, day, hour, minute and second information.
类别
在 帮助中心 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!