TEDIT create a m-file using a template.
TEDIT(funname) opens the editor and pastes the content of a user-defined template into the file funname.m.
Example
tedit myfunfun
opens the editor and pastes the following into the file myfunfun.
function output = myfunfun(input)
MYFUNFUN One-line description here, please.
output = myfunfun(input)
Example
myfunfun
See also
Author: Your name
Created: 2005-09-22
Copyright 2005 Your company.
Cite As
Peter (PB) Bodin (2026). TEDIT (https://uk.mathworks.com/matlabcentral/fileexchange/8532-tedit), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: New m-file (dynamical/documented header), InsertHeader
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | By mistake, I had stated that the Distributed Computing Toolbox was required. It is not. |
