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!