How do I create my own MATLAB Toolbox and a list of its contents?

49 visualizzazioni (ultimi 30 giorni)
How do I create my own MATLAB Toolbox and a list of its contents? How can I get a list of functions in a directory by using 'help directory_name'?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 13 Dic 2011
A toolbox is a collection of user-written MATLAB files. To make your own toolbox, 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. We suggest 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 '/techdoc/matlab_prog/f3-40511.html#bsf0yi2'])

Più risposte (1)

Rob Purser
Rob Purser il 2 Giu 2023
Hi, I wanted to make you aware of a new resource MathWorks has created for MATLAB Toolbox Authors: Best Practices for MATLAB Toolbox Development."
This comprehensive guide provides valuable guidelines and recommendations for high-quality and user-friendly MATLAB toolboxes. By following these best practices, you can create toolboxes that enhance productivity and deliver an exceptional user experience. We also have included a complete example (link) that implements all the best practices.
This has been released under a permissive license so that people can redistribute them freely and incorporate them in their own organization’s best practices. If you have comments or suggestions, open an issue or participate in the discussions on GitHub.
Check out our guide today and start building exceptional MATLAB toolboxes!

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Prodotti


Release

R2009a

Community Treasure Hunt

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

Start Hunting!

Translated by