Dairy Command?
4 views (last 30 days)
Show older comments
Hi Guys, I want to use the diary command which seems perfect what I want to intend with the exception of not been able to use variable filename with it. That is I would like to pass variable filename with date stamp on it with diary command each time .m script is run. Can anybody has suggestion? Example currently i can use: diary temp.log but i want diary temp_date.log where date is variable? Thanks in advance.
0 Comments
Answers (3)
Wayne King
on 9 May 2012
Why can't you create filename as a string variable (character array) and then use
diary(FILENAME)
0 Comments
See Also
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!