Open new m-file with standard header text in editor

Creates a new m-file with standard function header text.

Al momento, stai seguendo questo contributo

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
%-------------------------------------------------------------------------

Cita come

Kevin Bartlett (2026). Open new m-file with standard header text in editor (https://it.mathworks.com/matlabcentral/fileexchange/34148-open-new-m-file-with-standard-header-text-in-editor), MATLAB Central File Exchange. Recuperato .

Categorie

Scopri di più su Environment and Settings in Help Center e MATLAB Answers

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0