別のmファイルの別名関数を呼び出す方法
Show older comments
Matlabで 別ファイルの関数を呼び出そうとしたとき、 関数名とファイル名を一致させることで 別ファイルの関数を呼び出すことができますが、これだと関数毎にファイルをどんどん作る必要があります。
関数名とファイル名を一致させず別名にして、 別ファイルの関数を呼び出す方法はありますか?
例えば
common.m ファイルに func1() 、funf2() ・・・・ を作成し
main.m から func1, func2・・・ を呼び出す
ときの記述方法を教えてください。
Accepted Answer
More Answers (1)
Hernia Baby
on 31 Mar 2023
1 vote
オブジェクト指向プログラミングはいかがでしょうか?
動画は古いですがこちら:MATLABによるオブジェクト指向プログラミング入門
1 Comment
Kazunori Sumiya
on 4 Apr 2023
Categories
Find more on 関数の基礎 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!