MATLAB Answers

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?

8 views (last 30 days)
Larry Zana
Larry Zana on 17 Apr 2020
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 Comments

Sign in to comment.

Answers (1)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi on 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!

  0 Comments

Sign in to comment.

Tags

Products


Release

R2020a