How do I avoid the error "Project paths must be in the project root folder." when trying to add a folder to the Matlab path?
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to create in project in for example the folder /Documents/src/App. I then try to add the folder Documents/src/lib to the Matlab path for the project.
I get the error "Project paths must be in the project root folder."
If I instead create the project in the folder Documents/src, it adds all of the dozens of files in Documents/src/lib to the project, which seems to defeat the purpose of having a project and path.
I don't see any way to change to Project Root after the project is created.
How can I work around this? Or is there a preferred directory structure for Matlab projects that avoids this?
0 Kommentare
Antworten (1)
Sahithi Kanumarlapudi
am 20 Apr. 2020
Hi,
As the error message says MATLAB allows you to add only the subfolders of the folder in which you have created the project. But you can select the specific sub folders which you want to add to the project path. In your case you can create the project at "Documents/src" and you can add the specific sub folder to your path.
For more information on how to add path to a project refer to the following links
Hope this helps!
1 Kommentar
Stephen Nawrocki
am 6 Jan. 2021
This will not work for me. We have specific tools located elsewhere on the machine. I need a way to add folders that are not below the project.
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!