Discussion:
New to Scilab -- Diary function question
(too old to reply)
m***@gmail.com
2008-12-11 15:50:50 UTC
Permalink
I have been unable to make the diary function actually do anything.
Is there some trick to it that I don't know about? Thanks in advance
ycollet
2008-12-11 16:20:48 UTC
Permalink
I use the scilab-nightly build under windows 2000.
I tried:
diary('log.txt');

then I entered some scilab commands and, after a while, I closed the
diary file using:
diary(0)

And I found all the commands in the file log.txt on my desktop.
use 'pwd' to see where the diary file will be saved.

YC
m***@gmail.com
2008-12-11 16:29:27 UTC
Permalink
Post by ycollet
I use the scilab-nightly build under windows 2000.
diary('log.txt');
then I entered some scilab commands and, after a while, I closed the
diary(0)
And I found all the commands in the file log.txt on my desktop.
use 'pwd' to see where the diary file will be saved.
YC
Alright, I got that figured out. Now my issue is that everything put
into the diary file is an utter mess, format-wise. Any tips for that?
ycollet
2008-12-11 16:37:24 UTC
Permalink
Alright, I got that figured out.  Now my issue is that everything put
into the diary file is an utter mess, format-wise.  Any tips for that?
Use wordpad instead of notepad. This is certainly an unix formated
file (\n instead of \n\t).

YC
m***@gmail.com
2008-12-12 15:04:53 UTC
Permalink
Post by ycollet
Alright, I got that figured out.  Now my issue is that everything put
into the diary file is an utter mess, format-wise.  Any tips for that?
Use wordpad instead of notepad. This is certainly an unix formated
file (\n instead of \n\t).
YC
Good tip. Thanks
F. S. Farimani
2019-03-06 13:20:57 UTC
Permalink
I managed to use diary to export whos result as a matrix using regular expressions:

https://stackoverflow.com/a/55021722/4999991

Loading...