How to modify the function/script model at the creation ?

Hello,
When I create a new function the file created already contains text like :
function [ output_args ] = Untitled3( input_args ) %UNTITLED3 Summary of this function goes here % Detailed explanation goes here end
What I would like to do is to modify this predefined text (in particular other comments). And to the same at the creation of a new script. The aim is to have a generic structure of comments/code at the creation of a script/function.
If someone as a solution to do this, thank you in advance ! :)

 采纳的回答

2 个评论

OK, thank you for this resource. At first sight, it seems to answer to my question, I'll see if I can modify it to do what I want ... Thank you a lot Jan !
Finally, what I did is simply create a model_file.m which is a generic model and then when I want to create a new function/script I execute a shortcut (that I make) that copy and open the model_file.m .... This is not as complex and complete as the solution given by Jan but it work for me

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by