InsertHeader

バージョン 1.2.0.0 (3.79 KB) 作成者: Dan K
Inserts a user defined header in the m file currently open in editor
ダウンロード: 2.3K
更新 2011/11/9

ライセンスの表示

% InsertHeader Adds a template to the top of current file in editor for documentation.
% InsertHeader('filename')

% Example
% InsertHeader('InsertHeader') added the current header information to this
% file. NOTE: THIS CANNOT BE UNDONE! THE FIRST TIME YOU USE THIS, PLEASE
% HAVE A BACK UP COPY OF THE FILE IN CASE IT MAKES A MISTAKE.
% Custom defined headers can be created in the subfunction defined at
% the end of the file. I wish to express thanks to the authors of tedit.m and
% newfcn.m which helped me to create this routine.
% See also: tedit, newfcn

The manner in which I use it is to define a shortcut with the command InsertHeader(). That way when I click the shortcut my header is automatically inserted into whichever file is on top.

Note: If you use keyword expansion with your source control software, it will replace the strings in your template, if you check this file in... so plan on correcting the text before you use it.

This function does perform calls to Java commands which are not part of the normal documentation.

引用

Dan K (2024). InsertHeader (https://www.mathworks.com/matlabcentral/fileexchange/12323-insertheader), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2011b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersEnvironment and Settings についてさらに検索
謝辞

ヒントを得たファイル: NEWFCN, TEDIT

ヒントを与えたファイル: Save a copy of current active *.m file in editor adding time mark.

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.2.0.0

2011-11-09: Updated to be compatible with versions of Matlab after 2010b

1.0.0.0

Added automatic parsing of inputs, outputs, and automatic listing of subfunctions