Call part of a .m file

1 回表示 (過去 30 日間)
FarhadDay
FarhadDay 2018 年 5 月 2 日
コメント済み: FarhadDay 2018 年 5 月 5 日
Hi! Is there any way I can call just few lines of a .m file in another .m file? For instance, if there is a 500 lines .m file, how can I call the first 25 lines in another file? Or is there any way I can write a program that it goes and copy/paste the first 25 lines itself? Thanks.
  6 件のコメント
Stephen23
Stephen23 2018 年 5 月 4 日
編集済み: Stephen23 2018 年 5 月 4 日
"managed it with using 'save' and 'load' instead."
How is that related to the original question? Perhaps this might be relevant:
FarhadDay
FarhadDay 2018 年 5 月 5 日
I wanted to read defined variables from another .m file but I realised it is wrong and used save load. Thanks for your help.

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

回答 (1 件)

Yuvaraj Venkataswamy
Yuvaraj Venkataswamy 2018 年 5 月 3 日
編集済み: Stephen23 2018 年 5 月 3 日

カテゴリ

Help Center および File ExchangeManage Products についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by