how to create my own library in Matlab?

조회 수: 40 (최근 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 CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by