I have the following statements to set the diary & diary file:
fnDiary = [ mfilename '.out.txt' ]
system(['rm -f ' fnDiary])
diary off; diary fnDiary
This doesn't work, since Octave thinks I want the diary file name to be "fnDiary". Is there a way to specify the diary file using a string variable?