EDIT I misread the terminology. When I wrote "project folder" I meant "package folder".
I have added several folders to Matlab's search path. One of the folders is a project folder's parent folder. That single project folder contains three more project folders.
Matlab finds all functions from the other folders just fine, but it does not find anything from the project folder's sub-project folders. What am I doing wrong?
Here is a screenshot of the folders I have added to the path
D:\Work\matlab_mit is the parent folder to a project folder +MIT. Inside the +MIT folder, there is another project folder +jsonlab. In this case I am trying to use the function loadjson.m which is inside the +jsonlab folder. But it does not work if +jsonlab is not the current folder.
I can open the functions from the +MIT folder just fine, but not from the sub-project folders. The project folder +MIT cannot be added to path.
Why can't the functions in the sub-project folders be found when the parent project folder's parent folder is added to path?
Best Answer