Subdirectories in a custom package
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Gaik Tamazian
il 15 Dic 2014
Commentato: Sean de Wolski
il 16 Dic 2014
I created a toolbox package using the Packager tool integrated in MATLAB (version R2014b). In my toolbox, the functions are organised in subdirectories like base, graphics, etc. Also some functions are in the root directory of the toolbox, which is specified as a toolbox folder in the Packager.
When I installed the package on other computer, it occurred that only functions situated in the root toolbox directory could be called. The subdirectory functions could not be found.
It seems that the Packager adds only the root directory of a toolbox to MATLAB search path. Is there any way to specify the subdirectories to be added to the search path too? Or I have to put all my functions in a single folder?
0 Commenti
Risposta accettata
Sean de Wolski
il 15 Dic 2014
I'd recommend contacting tech support on this one. It's reproducible and no easy workaround other than unpackaging your directory structure seems to exist:
2 Commenti
Sean de Wolski
il 16 Dic 2014
I think one workaround might be to have a command in your top-level directory that explicitly adds the other directories to the path. But this kind of defeats the whole point of toolbox packaging.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Search Path in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!