how to create my own library in Matlab?

42 ビュー (過去 30 日間)
vedesh Mohit
vedesh Mohit 2018 年 3 月 14 日
回答済み: Ahmet Cecen 2018 年 3 月 14 日
I have some code of imputation and forecasting methods. How do I go about creating a library to incorporate these methods?
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 3 月 14 日
MATLAB does not have "libraries".
You could create an app https://www.mathworks.com/company/newsletters/articles/writing-apps-in-matlab.html, or you could create a class, or you could just put a bunch of files together in one directory that people would add to their MATLAB path.

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

回答 (1 件)

Ahmet Cecen
Ahmet Cecen 2018 年 3 月 14 日
MATLAB does have in some sense an overlooked and under-utilized analogue to libraries called Packages. This works the same way class folders works. Basically, you can drop your functions in a package folder to associate all of them under a package name, like package1.readIMG. You can then have classes under this package too, with their own methods, like package1.class1.readData.

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by