Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!56g2000hsm.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to make command history permanent?
Date: Wed, 4 Jun 2008 03:40:49 -0700 (PDT)
Organization: http://groups.google.com
Lines: 60
Message-ID: <c486a413-ca79-451e-9828-25f9c9f36e1e@56g2000hsm.googlegroups.com>
References: <g21skv$vhc$1@news.stanford.edu> <86752402-6902-4f73-bf7d-429ac8b16771@s50g2000hsb.googlegroups.com> 
NNTP-Posting-Host: 212.17.141.53
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1212576050 5947 127.0.0.1 (4 Jun 2008 10:40:50 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 4 Jun 2008 10:40:50 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 56g2000hsm.googlegroups.com; posting-host=212.17.141.53; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
Xref: news.mathworks.com comp.soft-sys.matlab:472128



On 4 Jun, 03:38, "Matt Fig" <spama...@yahoo.com> wrote:
> =A0> Thanks! But I don't like log all the outputs. Because
> that's going to be
>
> > huge. I just want all the command histories.
> >I got to know that Matlab command history has
> > a default length limit of 20K, which is bad desgin.
>
> > I think it should just allow an infinite amount of command
> history to be
> > saved.
>
> > Why cares about the size of those texts today with large
> harddisk? The most
> > important is the convenience of being able to dig out
>
> which command one has
>
> > used a few months ago.
>
> Your statements don't seem to add up.

Having been where the OP seems to be, I can assure you
the statements add up!

>=A0You are worried about
> saving output because it will be "huge,"

Others already commented on that...

> but you vent
> against Matlab's "bad design" for not storing "infinite"
> command history? =A0What is "huge" next to "infinite?" =A0

There is a limit to how much input a human can supply
through the command line, maybe a few kB per day.
The output can be immense.

> I too had to learn the hard way. =A0If you are doing something
> that is valuable (or complex) and you think you may need for
> future reference, save it in a script file.

That's what I do these days. One problem with thit
approach is that I often run the scripts from the
Editor window by pressing the F5 key. Thise events
are not logged in neither the command history nor
diary, since the command window is bypassed.

I would suggest that somebody who has the privelege to
submit a product enhancement request (I don't as I didn't
renew the matlab support agreement) asks for a modification
such that commands (including F5's in the editor window)
are logged in a specified file, which the user can specify
in startup.m.

All the functionality necessary to make such a feature
is already there, it's just a matter of putting the
pieces together.

Rune