フィルターのクリア

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)?

採用された回答

Mischa Kim
Mischa Kim 2014 年 7 月 18 日
Seetha, check out this File Exchange entry.
  1 件のコメント
Seetha Rama Raju Sanapala
Seetha Rama Raju Sanapala 2014 年 7 月 19 日
Is there a way to do some setting changes like in startup.m so that whenever I open a new M file it is already filled with the data I wanted and put in some file.

サインインしてコメントする。

その他の回答 (1 件)

James Tursa
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.
  1 件のコメント
Seetha Rama Raju Sanapala
Seetha Rama Raju Sanapala 2014 年 7 月 19 日
You are right and this will work and that is what I do or have been doing. But what I wanted was something like changing the settings so that whenever I open new M file, it is already filled with some predetermined data that I tell in the settings.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAdding custom doc についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by