Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!h20g2000yqn.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Diary quirkyness
Date: Thu, 12 Mar 2009 13:39:34 -0700 (PDT)
Organization: http://groups.google.com
Lines: 30
Message-ID: <8fee2080-cde5-4ee6-a973-702c23c4ab0e@h20g2000yqn.googlegroups.com>
References: <gp9j86$i4r$1@fred.mathworks.com> <43679d96-bbe2-4432-973b-673b2a88d7e3@e38g2000yqa.googlegroups.com> 
	<gpbg8m$7lq$1@fred.mathworks.com>
NNTP-Posting-Host: 77.16.139.148
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1236890374 19972 127.0.0.1 (12 Mar 2009 20:39:34 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 12 Mar 2009 20:39:34 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: h20g2000yqn.googlegroups.com; posting-host=77.16.139.148; 
	posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
	CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:524423


On 12 Mar, 18:20, "Todd Welti" <twe...@harman.com> wrote:
> Rune Allnor <all...@tele.ntnu.no> wrote in message <43679d96-bbe2-4432-97=
3b-673b2a88d...@e38g2000yqa.googlegroups.com>...
> > On 12 Mar, 00:59, "Todd Welti" <twe...@harman.com> wrote:
> > > I have some code that uses "diary" near the start to make a log file.
>
> > You should be a bit carful about this. Things might have
> > changed since then, but ten years ago, DIARY logged what
> > went on in the command window. So anything that was not
> > entered or displayed in the command window (like using F5
> > to run a program from the editor window) was just missing
> > from the diary file.
>
> > Rune
>
> I tried to account for this by controlling the diary entry in the m file =
code itself (deleting existing diary file, starting new one and stopping di=
ary at the end of the m file) . =A0But your point is still well taken.

If you have one .m file that deletes a present diary file,
and starts a new one, the diary file will be empty if
nothing was communicated back and forth to the command window.
With this approach, the diary file might at most contain
any warnings, error messages or program output.

Again, you need to be very careful about this, and make
sure you understand exactly how the diary works. As well
as being very pedantic about what functionality you want.

Rune