Create run log history each time code is run
4 vues (au cours des 30 derniers jours)
I have a code that I am running and wish to write a text file with time and date and name of the input file i have used every time the code is run.
I have struggled to this in a form in which can be added to each time it is run.
Any help would be appreciated, thanks
Abhilash Padma le 30 Juil 2019
I assume that you want to append the execution information (time, date and name of the input file) of your code each time whenever you execute it in a single file. Following is the sample code to be added in your source code which may serve your purpose.
time = datestr(clock,'YYYY/mm/dd HH:MM:SS:FFF');