What is recommended way to store code snippets like utility functions?

5 views (last 30 days)
I have a lot of small code snippets which i can classify into either utilities, examples, and such. Is there a best practice way of storing these types of things (and being able to use them in specific projects)? IE is there a 'library' concept of storage and where/how can that be done, as opposed to a project subfolder either in the working folder, or seperate folders.

Accepted Answer

Jan
Jan on 8 Mar 2022
Yes. Store the tools in their own folder, exactly as you can see it for Matlab's toolboxes. You can distinguish "tools", which should be available in all other functions as e.g. numerical functions, "toolboxes" as e.g. a set of specific drawing methods which produce a standard figure with page numbers, titles and so on, and finally your projects.

More Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!