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

조회 수: 3 (최근 30일)
Michael Sanders
Michael Sanders 2022년 3월 8일
답변: Jan 2022년 3월 8일
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.

채택된 답변

Jan
Jan 2022년 3월 8일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by