I have 2 paths :
C:\\controller\\functions\\verifyModel.m
C:\\OGVD\\prod\\KMLP\\controller\\controllerStatus.m
Before usage of controllerStatus use:
addpath('C:\controller\functions\')
Also, you might want to put in in a @ folder. These folders are added to the path whenever they are visible, so as they are a subfolder of your current path(pwd
).
Or add 'C:\controller\functions\' to your static matlab path, what I do not recommend.
See also this answer.