Issues with PATH, File in Directory on PATH not found
Show older comments
I found several other similar issues, but none addressed the problem I am encountering. I am trying to run my program but am having issues with accessing classes and function in other directories on the PATH. Here is the error and the 'path' command clearly shows the directory existing on the PATH. Likely am missing something simple. Any insight or help is appreciated!
Building with 'Microsoft Visual C++ 2019'.
MEX completed successfully.
Building with 'Microsoft Visual C++ 2019'.
MEX completed successfully.
Running data plotter...
'ui_settings' is not found in the current folder or on the MATLAB path, but exists in:
C:\Users\MyName\Documents\MATLAB\proj_folder\functions\ui_class (*** <---- This folder exists on the path)
Change the MATLAB current folder or add its folder to the MATLAB path.
Error in dive_log_plotter (line 27)
ui_settings = ui_settings(false);
>> path
MATLABPATH
C:\Users\MyName\Documents\MATLAB\proj_folder
C:\Users\MyName\Documents\MATLAB\proj_folder\plot_me
C:\Users\MyName\Documents\MATLAB\proj_folder\mex
C:\Users\MyName\Documents\MATLAB\proj_folder\functions\ui_class (*** <---- The folder in question is listed on the PATH)
C:\Users\MyName\Documents\MATLAB\proj_folder\functions\ui_functions
C:\Users\MyName\Documents\MATLAB\proj_folder\functions
C:\Users\MyName\Documents\MATLAB\proj_folder\custom_plotters
.
.
.
.
I am using a fresh install of MATLAB R2020b and my operating system is Windows 10.
3 Comments
Walter Roberson
on 5 Feb 2021
One of the ways that problem can occur is if ui_settings.m has a parse error in it. In such a case, the file is found, but the function is not found.
John Fisher
on 5 Feb 2021
Edited: John Fisher
on 5 Feb 2021
John Fisher
on 5 Feb 2021
Answers (0)
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!