Where shall I put my "toolbox" my company provides for MATLAB?

2 views (last 30 days)
Our company produces electrical devices. We wrote an MATLAB interface which makes it possible to communicate with our devices from MATLAB. Where shall we put this extension to MATLAB? Is there a certain folder (almost) every MATLAB installation provides? Would "C:\Program Files\MATLAB\R2014a\toolbox\ourtoolbox" be an apropriate location for "ourtoolbox"?
What is the best way to include this toolbox? Is writing
"addpath('C:\Program Files\MATLAB\R2014a\toolbox\ourtoolbox')"
at the beginning of every script using the ourtoolbox methods a resonable way?
Additional information:
  • We are using Install Shield to install our software.
  • In addition we have a programm for finding updates which should be able to update the files in "ourtoolbox".

Accepted Answer

Sean de Wolski
Sean de Wolski on 25 Nov 2014
You can put them anywhere and then just add them to the MATLAB path ( addpath/pathtool ). I would advise against putting them in the matlabroot directory or subdirectories.
In R2014b, you can now package them as a toolbox directly in MATLAB which would then allow other users to install just a single file and all of this will be taken care of:
and

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!