ファイル名からユリアン日の取得
Ältere Kommentare anzeigen
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 の日付フィールドが多すぎます。
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 日付と時刻 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!