link between m files

1 回表示 (過去 30 日間)
Ayda
Ayda 2011 年 12 月 16 日
Good evening\morning
How can I do a link between multi m.files
I have a main code that will call the other m files depending on If condition

回答 (2 件)

Walter Roberson
Walter Roberson 2011 年 12 月 16 日
If you are trying to call upon a script rather than a function, use run()
  2 件のコメント
Sean de Wolski
Sean de Wolski 2011 年 12 月 16 日
or just type the mfile name.
Walter Roberson
Walter Roberson 2011 年 12 月 16 日
run() is useful if you want to specify a path to the second file; it is also especially useful if the second file has the same name as the original.

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


Sean de Wolski
Sean de Wolski 2011 年 12 月 16 日
doc function
Would be a good place to start, along with the getting started documentatiob.
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 12 月 16 日
http://www.mathworks.com/matlabcentral/answers/8026-best-way-s-to-master-matlab

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

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by