フィルターのクリア

Calling 2 functions into one .m file

1 回表示 (過去 30 日間)
Matthew Olivo
Matthew Olivo 2018 年 3 月 1 日
コメント済み: Matthew Olivo 2018 年 3 月 1 日
I have to call 2 functions, each with a different .m file, into a single .m file. How would I do this?

採用された回答

KSSV
KSSV 2018 年 3 月 1 日
Save the two m files as a funciton....and call them in a single m file.
function s = func1(a,b)
s = a+b ;
function d = func2(a,b)
d = a+b ;
Save the above two functions into m files. Call them in single m file:
a = rand ;
b = rand ;
s = func1(a,b) ;
d = func2(a,b) ;
a = s+d ;
  1 件のコメント
Matthew Olivo
Matthew Olivo 2018 年 3 月 1 日
Thank you!!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by