insertTemplateHeade​r

버전 1.0.1 (2.55 KB) 작성자: J. Benjamin Kacerovsky
Inserts a predefined header template into the active script of the editor
다운로드 수: 59
업데이트 날짜: 2020/9/4

라이선스 보기

Inserts a predefined header template into an active script; there are a number of similar functions on the MathWorks exchange. As far as I could find, these typically create a new script with the header template (and some seem to require going through a GUI,... while extra typing is exactly what I wanted to avoid). I wrote this version since I generally wanted to be able to insert a header into a function, at the end of my workflow, once I am done building a function and decide to publish it or to add a header so I can remember what it does later on.

To insert the template simply open the script you want to add the template to in the editor and call insertTemplateHeader in the command line.

The template to be inserted is based on Denis Gilbert (2020). M-file Header Template (https://www.mathworks.com/matlabcentral/fileexchange/4908-m-file-header-template), MATLAB Central File Exchange. Retrieved January 8, 2020

The template can be customised by changing lines 82-116 in the original submission.

the following code block (lines 110-112) of the template contain only generic place holders for author/contact information in the original submission. I would recommend you change these lines to your information or delete them.
'%% Author: author_Name\n',...
'%% Affiliation \n',...
'%% email: emailadress@mail.com\n',...

인용 양식

J. Benjamin Kacerovsky (2024). insertTemplateHeader (https://www.mathworks.com/matlabcentral/fileexchange/79903-inserttemplateheader), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2019b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.1

edit summary

1.0.0