No BSD License  

Highlights from
MakeContents

5.0

5.0 | 2 ratings Rate this file 7 Downloads (last 30 days) File Size: 4.37 KB File ID: #190

MakeContents

by Anil Prasad

 

21 Jul 2000 (Updated 07 Jul 2003)

MAKECONTENTS(STRING) creates a standard "Contents.m"file in the current directory

Editor's Notes:

This functionality is now available in MATLAB. Please refer to the CONTENTSRPT.M function.

| Watch this File

File Information
Description

MAKECONTENTS(STRING) creates a standard 'Contents.m' file in the current directory by assembling the first comment (H1) line in each function found in the current working directory. If a 'Contents.m' file exists, it is renamed to 'Contents.old', before a new 'Contents.m' file is created. STRING is inserted as the first line of the 'Contents.m' file; if omitted, a blank line is inserted instead. The function changes permission on the resultant 'Contents.m' file to rw-r--r-- on Unix systems.

The MakeContents.m function is based on the mkcontnt.m function by Denis Gilbert. However, the present MakeContents.m function is fully compatible with the helpwin navigation function in Matlab.

This function was tested under Matlab Version 5.3.1.29215a (R11.1) on PCWIN and on UNIX platforms.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
mkcontnt

MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
25 Aug 2004 hans van Dijk

Nice tool

14 Nov 2006 Luiz Souza

Have been using this tool for many years. Very useful. I have modified it to generate sorted list of m functions.

Please login to add a comment or rating.
Updates

desc

07 Jul 2003

Modification provided by Matthew Brett, to accomodate making Contents.m recursively in sub-directories. Additional input arguments allow for variations on the format of the Contents.m.

[matthewbrett@yahoo.com]

Tag Activity for this File
Tag Applied By Date/Time
path Anil Prasad 22 Oct 2008 06:33:39
directories Anil Prasad 22 Oct 2008 06:33:39
files Anil Prasad 22 Oct 2008 06:33:39
contents Anil Prasad 22 Oct 2008 06:33:39
make contents Anil Prasad 22 Oct 2008 06:33:39
tools Anil Prasad 22 Oct 2008 06:33:39
creates Anil Prasad 22 Oct 2008 06:33:40
standard Anil Prasad 22 Oct 2008 06:33:40
utilities Anil Prasad 22 Oct 2008 06:33:40

Contact us at files@mathworks.com