Using custom toolboxes in older releases
3 次查看(过去 30 天)
显示 更早的评论
Hello,
I have been exploring the 'Package Toolbox' feature, which seems to work like a charm and it is exactly what I need.
I know that the toolbox was first introduced in R2014b but does anybody know if there is a way to share it to older versions (R2012b would be the oldest target)?
I tried just running the .mltbx in R2012b and, as I expected, it did not work.
Any suggestions?
Thanks in advance.
0 个评论
回答(1 个)
Sudhanshu Bhatt
2016-1-5
Hi Erick,
A toolbox is a collection of user-written MATLAB files. To make your own toolbox in MATLAB R2012b, put the MATLAB files for the toolbox in one or more directories and then add these directories to the MATLAB Path. You can use PATHTOOL to bring up the Path Browser so you can add directories to the MATLAB Path. Use the "Path" menu in the Path Browser. It is recommended placing your files outside of the MATLAB directory tree, and then including that directory on your path, instead of working inside the MATLAB directory tree.
For information on how to add help and demos for your own toolbox, please refer to the documentation at:
You may access the same page locally by typing the following at the MATLAB prompt:
web([docroot '/matlab/matlab_prog/display-custom-documentation.html'])
Hope this helps.
Thanks
Sudhanshu Bhatt
1 个评论
Walter Roberson
2016-1-5
True, but "package application" builds something that is self-installing, which is the layer that is missing before that. I think it would be possible to write self-install code for earlier versions but it would be a little bit of a nuisance. If you did not want to count upon the auto-execution capabilities written into packages such as PKZIP, then you would need to write the equivalent of SHAR (Shell Archives).. do-able but not most people's idea of "fun".
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!