MakeContents

版本 1.0.0.0 (1.8 KB) 作者: Anil
MAKECONTENTS(STRING) creates a standard "Contents.m"file in the current directory
2.2K 次下载
更新时间 2003/7/7

无许可证

编者注: This functionality is now available in MATLAB. Please refer to the CONTENTSRPT.M function.

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.

引用格式

Anil (2024). MakeContents (https://www.mathworks.com/matlabcentral/fileexchange/190-makecontents), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R11.1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Search Path 的更多信息
标签 添加标签
致谢

参考作品: mkcontnt

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

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]