File Exchange

image thumbnail


version 1.0 (5.3 KB) by

Create new file from template.



View License

This function will create a new file using the format from a template file. The available templates currently include scripts, functions, functions using an input parser, classes, and enumerations. The generated files can also be populated with information like date of creation, company, and author provided in a struct or .mat file. The template files are completely customizable and additional templates can easily be added.

Basic usage is simple:
  newf myscript.m (script is the default type)

This can be combined with BetterHelp as well, simply uncomment the line
  %string = [string ,'%CUSTOM_HELP%'];
in newf.

Comments and Ratings (0)

MATLAB Release
MATLAB 7.13 (R2011b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video