ファイル名からユリアン日の取得
Show older comments
YYYY,MM,DD,hh,mm,s.ext
というファイルのユリアン日をえる方法を教えてください。
下のようにしていますがうまくいきません。
よろしくお願いします。
sdir=dir("*.ext");
filename={sdir.name};
sdirdate = cellfun(@(x) (x(1:18)), filename, 'UniformOutput', false) ;
n=1
datenum(sdirdate(n))
エラー: datenum (line 190)
DATENUM は失敗しました。
原因:
エラー: datevec (line 275)
2019,10,23,09,30,0 の日付フィールドが多すぎます。
Accepted Answer
More Answers (0)
Categories
Find more on 日付と時刻 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!