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 ! :)

 Risposta accettata

Jan
Jan il 9 Nov 2018

2 Commenti

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by