diary, how to create a new one
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (2)
Trig
le 9 Nov 2017
Automatic date and time append:
diary(['diary_',datestr(now,'dd-mm-yy','local'),'_',datestr(now,'hh-MM-ss','local'),'.txt'])
Sean de Wolski
le 16 Oct 2014
0 votes
Pass diary a filename
2 commentaires
Sean de Wolski
le 16 Oct 2014
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
Catégories
En savoir plus sur Entering Commands dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!