MATLAB Answers

Is there a MATLAB package manager?

18 views (last 30 days)
I cannot find any MathWorks endorsed package managers. The user-built solutions I have found do not seem to be popular (PackMan, DepMat, mpm) or regularly maintained. What do people recommend? Is there a reason for the lack of package manager in comparison to pip (python), npm (JavaScript)? How does MathWorks recommend I organise seperate but interdependent code?
  2 Comments
James Bland
James Bland on 10 Jun 2021
Hi Rik,
Thanks for your repsonse. Im not particular familiar with FileExchange apart from to download the odd matlab script. Is there a particular workflow that you would recommend using, or you use yourself, in packaging up your own code via FileExchange?

Sign in to comment.

Accepted Answer

Sean de Wolski
Sean de Wolski on 10 Jun 2021
Right now there is no package manager like the ones you listed in that everything in MATLAB is tied to the path. Using MATLAB Add-ons with the File Exchange and MATLAB Projects with reference projects are the two best current solutions. You can minimize namespace collisions with namespace packages in MATLAB (note the terminology here does not imply package like in other languages).
  1 Comment
James Bland
James Bland on 22 Jun 2021
hi sean,
thanks for your answer. If you could point me to any good examples of matlab workflows/ code organisation that would be appreciated!

Sign in to comment.

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by