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?

35 visualizaciones (últimos 30 días)
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?

Respuestas (1)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi el 20 de Abr. de 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 comentario
Stephen Nawrocki
Stephen Nawrocki el 6 de En. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Project Management en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by