diary, how to create a new one
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lizan
el 16 de Oct. de 2014
Respondida: Dave
el 9 de Nov. de 2017
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?
0 comentarios
Respuesta aceptada
Mohammad Abouali
el 16 de Oct. de 2014
Editada: Mohammad Abouali
el 16 de Oct. de 2014
could you paste the value for savdir and ['file_',mfilename,myFolder(53:end),'diary.txt']?
also execute fullfile(savdir,['file_',mfilename,myFolder(53:end),'diary.txt']) and check if that runs ok.
0 comentarios
Más respuestas (2)
Dave
el 9 de Nov. de 2017
Automatic date and time append:
diary(['diary_',datestr(now,'dd-mm-yy','local'),'_',datestr(now,'hh-MM-ss','local'),'.txt'])
0 comentarios
Sean de Wolski
el 16 de Oct. de 2014
Pass diary a filename
2 comentarios
Sean de Wolski
el 16 de Oct. de 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
Ver también
Categorías
Más información sobre Scope Variables and Generate Names en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!