Facing problems while compiling several large Mex files
显示 更早的评论
I was working by compiling several mex files. Suddenly The error has been occured which I solved earlier but this time I couldn't solve this problem any more. I installed Mex compiler and SDK for several times, still the error is happening . The error I am getting is

回答(1 个)
The problem is not the compiler, but hidden in the function mex_compiling in the line 9. It looks like tis function expects the current directory to be a specific folder. So take a look into this function to find out, which folder this might be.
Using relative path names causes such bugs frequently. Prefer absolute path names.
4 个评论
Shukla Das
2021-9-30
The script assumes, that there is a subfolder called "MEX". Without knowing any details, I cannot guess, where this folder is expected and why it is not there.
A summary of the currently available information: "The folder MEX is missing at a specific location". This does not allow to suggest a solution.
Shukla Das
2021-9-30
Jan
2021-10-1
The current folder can be changed by GUI oder TImer callbacks unexpectedly. It is much safer not tzo rely on the current folder, but to use absolute file names. You can obtain the path of a currently running function by:
myPath = fileparts(mfilename('fullpath'));
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!