View License

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

» Watch video

Highlights from
NewFile

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 5.3 KB File ID: #41624 Version: 1.0

NewFile

by

 

Create new file from template.

| Watch this File

File Information
Description

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)
  newf('myfunction.m','f')

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

Acknowledgements

Automatic Template For New Functions and Generate A New Function M File, With Documentation inspired this file.

This file inspired New M File (Dynamical/Documented Header).

MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us