From: Torben Ott on
Hi,

I want to use m-files with Matlab. Since I work with different people at one m-file (but also when I work alone with them), it is very convenient to have some information in the header, when the file was last modified, ant to have a version or author reference.

I wonder if there is any possibility to include such information automatically. When I look at Matlab function (random example: rand.m), I find in the header something like this:

from rand.m, lines 59-61.

% Copyright 1984-2008 The MathWorks, Inc.
% $Revision: 1.1.6.2 $ $Date: 2008/09/13 06:57:03 $
% Built-in function.

In the middle line, it looks like some date and time was included automatically (although, I admit, tha's a guess).

Anyone knows something about such features? It would be a great help.

Thanks.
From: Steven_Lord on


"Torben Ott" <olrin(a)gmx.de> wrote in message
news:i3ee45$nf4$1(a)fred.mathworks.com...
> Hi,
>
> I want to use m-files with Matlab. Since I work with different people at
> one m-file (but also when I work alone with them), it is very convenient
> to have some information in the header, when the file was last modified,
> ant to have a version or author reference.

You should investigate using revision control software.

http://en.wikipedia.org/wiki/Revision_control

And in fact MATLAB can interface with some revision control systems:

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/f7-5297.html

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com