datetime 関数を使って現在の日時を取得し、char 関数でテキストに変換します。
datetime 関数の Format プロパティにて出力テキストのフォーマットを指定します。
% フォルダ名の作成
>> fname = char(datetime('now','Format','yyyyMMdd'))
fname =
'20190910'
>> mkdir(fname) % フォルダの作成
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!