- Convert folder to project: In MATLAB, any folder can be converted into a project though the GUI by navigating as follows
How does one best capture dependency versions for a MATLAB project, please?
4 views (last 30 days)
Show older comments
How does one best capture dependency versions for a Matlab project, please? I'm looking for an equivalent to requirements.txt (Python) or renv.lock (R). I think this is done with .prj files in Matlab i.e. one makes a folder into a project through the GUI and uses the dependency analyser to store requirements in the xml content of the .prj file. Is this right?
0 Comments
Answers (1)
Zinea
on 3 Apr 2024
Hi Robert,
MATLAB projects (.prj) offers a way to manage and share your work along with its dependencies. Here is the workflow on how to use MATLAB projects to capture and manage dependency versions:
Home > New > Project > From Folder
This will start the process of creating a project from the current folder.
2. Analyze dependencies: Once a folder is converted into a project, the ‘Dependency Analyzer’ can be used to find and manage all dependencies of the project.
Project > Dependency Analyzer
3. Capture dependencies: MATLAB allows one to directly manage dependencies within the project. You can specify which files are required for the project to run, including the source code and any external toolboxes or MATLAB products the project relies on.
4. .prj File : The project details, including dependencies, settings, path, custom tasks are stored in an XML-based .prj file.
Here is a link to the documentation page on analysis of dependencies in MATLAB for your reference:
Hope this helps!
Best,
Zinea
0 Comments
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!