NEWFCN

newfcn does create a M-Files based function with creation information.

You are now following this Submission

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 (2026). NEWFCN (https://in.mathworks.com/matlabcentral/fileexchange/6408-newfcn), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: InsertHeader

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0