Releases: mattools/matlab-templates
Matlab Code Templates v1.1
matlab-templates
Matlab-Templates is a collection of functions for quickly generating pre-edited matlab files
for specific use cases: creating new classes, new tests...
It is based on the 'tedit' function, originally written by Peter Bodin.
Each function in the template has a name in the 'newXXX' format.
When the function is called with the name of the item, a new file is created, and the editor opens
with a pre-edited header and code structure.
In particular, author name, copyright information, date of creation... are automatically updated.
The templates can be modified by editing the 'newXXX' functions.
Creating new class
The newClass function can be used to create a new file containing a class definition.
newClass('MyClassName')
The new file contains the following code patterns:
- a header with pre-edited information
- property definition
- a constructor stub
- space for specific methods
Feel free to adapt to your own needs!
Matlab Code Templates v1.0
matlab-templates
Matlab-Templates is a collection of functions for quickly generating pre-edited matlab files
for specific use cases: creating new classes, new tests...
It is based on the 'tedit' function, originally written by Peter Bodin.
Each function in the template has a name in the 'newXXX' format.
When the function is called with the name of the item, a new file is created, and the editor opens
with a pre-edited header and code structure.
In particular, author name, copyright information, date of creation... are automatically updated.
The templates can be modified by editing the 'newXXX' functions.
Creating new class
The newClass function can be used to create a new file containing a class definition.
newClass(NEWCLASSNAME)
The new file contains the following code patterns:
- a header with pre-edited information
- property definition
- a constructor stub
- space for specific methods
Feel free to adapt to your awn needs!
Matlab Code Templates v1.0
Matlab-Code-Templates is a collection of functions for quickly generating pre-edited matlab files for specific use cases: creating new classes, new tests...
Each function in the template has a name in the newXXX
format. When the function is called with the name of the item, a new file is created, and the editor opens with a pre-edited header and code structure. In particular, author name, copyright information, date of creation... are automatically updated. The templates can be modified by editing the newXXX
functions.
To install, simply add the directory to the path, and use one of the newClass
, newTest
or newEnum
functions.