Is there a way to create all m files with already filled in some predetermined lines that are needed for every file like clear all; close all; author name etc?
1 次查看(过去 30 天)
显示 更早的评论
Is there a way to create all m files with some "predetermined, fixed lines already filled in" (that are needed for every file like clear all; close all; author name etc)?
0 个评论
采纳的回答
更多回答(1 个)
James Tursa
2014-7-18
Have a template file sitting out there (e.g. mytemplate.m) that has a function outline & comments (author etc) already filled in. When you want to create a new function, open this file and the first thing you do is SAVEAS the desired file name, then edit your new function.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Adding custom doc 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!