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?

31 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi il 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 Commento
Stephen Nawrocki
Stephen Nawrocki il 6 Gen 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.

Accedi per commentare.

Categorie

Scopri di più su Project Management in Help Center e File Exchange

Tag

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by