File Exchange

image thumbnail


version (4.65 KB) by Frank González-Morphy
newfcn does create a M-Files based function with creation information.


Updated 30 Nov 2004

No License

Editor's Note: This file was selected as the MATLAB Central Pick of the Week

>> newfcn('MyNewFcn') creates a M-File having the entered filename and a specific structure which helps for creating the main function structure. It would be opened and the starting line for writting will be highlighted (Only available in R14 or higher).

The actual working MATLAB Version will be also captured. If user forgot to enter code and execute the function, he will get a reminder to enter code in the function.

NEWFCN, NEWSL, NEWXPC and NEWFCN_RENAME are a set of M-Functions which shold help the MATLAB User to create Functions, Simulink and xPC Target based Models in a quick Way.

Enjoy and thx for your Feedback!

Cite As

Frank González-Morphy (2020). NEWFCN (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Ronan Figureiredo Rossi

Great idea! It's a tool that fits perfectly to anyones' needs.

Jøger Hansegård

This is one of the few tools that I have downloaded and actually use! I have used it for several months now and its brilliant!

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: InsertHeader