I have compiled a stand-alone application using MCC. Before compiling the application, I added some directories using a relative path syntax. An example of such a command would be:
addpath(genpath('.'));
which adds the current directory and all subdirectories to the path, but uses a relative path syntax. The application compiles without errors, and the appropriate files are included in the CTF archive. When I attempt to run the application, I receive an error of the form:
Undefined command/function 'mysub'. Error in ==> myapp at 2 MATLAB:UndefinedFunction
where "mysub" is the name of a subroutine that is contained in one of the directories specified as a relative path, and "myapp" is the stand-alone application.
Best Answer