Move diary in file to newfolder
14 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Peter O
2021 年 7 月 6 日
Hi Armin,
Try this at the start of your code. You may need to ensure the path exists before creating the diary file. You should get an error if that's the case, use mkdir for the path.
mypath = 'diaries'
myfile = "mydiary_" + datestr(now,30) + ".txt"
filepath = fullfile(mypath, myfile)
diary(filepath)
% Print location of diaryfile
get(0,'DiaryFile')
8 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!