Open new m-file with standard header text in editor

版本 1.0.0.0 (2.7 KB) 作者: Kevin Bartlett
Creates a new m-file with standard function header text.
322.0 次下载
更新时间 2011/12/9

查看许可证

Creates a new m-file in the current directory. The m-file is created with a standard header text, giving the Matlab version, operating system, author, date and time and, optionally, the author's organization (the values for the author and organization are customizable).

The m-file created is opened automatically in the Matlab editor.

The following is the contents of the m-file named 'myprogram.m', created with the command
newmf myprogram

function [] = myprogram()
%
% myprogram.m--
%
% Syntax:
%
% e.g.,

% Developed in Matlab 7.12.0.635 (R2011a) on GLNX86.
% Ada Lovelace (ada@example.com), 2011-12-09 12:29
%-------------------------------------------------------------------------

引用格式

Kevin Bartlett (2024). Open new m-file with standard header text in editor (https://www.mathworks.com/matlabcentral/fileexchange/34148-open-new-m-file-with-standard-header-text-in-editor), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R12
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

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