diary, how to create a new one
显示 更早的评论
I have a .m file I want to save the text at the command window. Next time I run the m-file I want to create a new diary file. This however seem to be problematic. I try to save the diary with a new filename but I get the message that the file doesn't exist.
Any idea how to solve this?
采纳的回答
更多回答(2 个)
Trig
2017-11-9
Automatic date and time append:
diary(['diary_',datestr(now,'dd-mm-yy','local'),'_',datestr(now,'hh-MM-ss','local'),'.txt'])
Sean de Wolski
2014-10-16
0 个投票
Pass diary a filename
2 个评论
Sean de Wolski
2014-10-16
Well I have no clue what those variables are do I don't know what it means. What happens if you put a breakpoint on that line and print the output from fullfile
类别
在 帮助中心 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!