MATLAB Answers

How do I open an m-file 1 from another m-file 2 and write a multi-line on m-file 1 at a specific position from m-file 2?

2 ビュー (過去 30 日間)
Ratsimandresy Dina
Ratsimandresy Dina 2020 年 9 月 17 日
回答済み: Ayush Gupta 2020 年 10 月 8 日
Hi, we have a bunch of m-files functions that we need to add copyright and reference to the help section, which is placed before the "function" command line, of each one of them. Does anybody know of any way to do this automatically from an external m-file so that each of the m-files functions will have copyright and reference with the same style at the help section?
Thank you!

  0 件のコメント

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

回答 (1 件)

Ayush Gupta
Ayush Gupta 2020 年 10 月 8 日
It is possible to edit a m file with the help of another. If we know to edit a single m file, then we can iterate over all such m file we want to edit. To know about to edit m file from another one, look at another similarly asked question here.

  0 件のコメント

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by