import images with timestamps label
5 次查看(过去 30 天)
显示 更早的评论
Hi
I have images that have timestamp label, I want only to import only the timestamp and store in one colmun array without loading all images to spacework.
The images labeling has the follwing Shape: yyyy-mm-dd:HH:MM:ss.jpg
for instance 2021-07-05-14:17:05.jpg
Many thanks in advance
3 个评论
Peter Perkins
2021-7-27
DateString = datestr(N,fmt);
DateString = datenum(DateString);
DateString = transpose(DateString);
HistoryJune24th = datetime(DateString,'ConvertFrom','datenum')
seems very round-about. Can't say this strngly enough: Don't use datestr and datenum. If this is still part of your code, I suggest
HistoryJune24th = datetime(N,"Format",'yyyy-MM-dd-HH:mm:ss')
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Time Series Events 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!