I am trying to use mcc -m to compile executables from matlab codes using cvx, but always failed when I tried to run it on command line. The codes run without problem in the matlab IDE.
The most recent errors is :
is not in the application's expanded CTF archive at
This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
Previously accessible file "/ifs/spectrum/yshi/cvx/keywords/variable.m" is now
The function variable.m is actually in the CTF archive because I used -a option in mcc to include everything in cvx.
Any suggestions? Thanks!