Why can't Matlab find functions from a project folder within another project folder?
Afficher commentaires plus anciens
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?
1 commentaire
Your question seems to be unlrelated to projects:
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Search Path dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!