首先,我知道这里有一个类似的问题,但我读过它,它涉及一个不同的问题.继续解决我的问题,每次我编译从函数使用的C文件时,都会出现错误"MATLAB遇到内部问题,需要关闭".通过Mavericks OS X上的"Clang"成功完成了编译.这是该错误的屏幕截图.如果需要解决错误,可以根据要求提供更多详细信息(Matlab报告等).
First of all, I am aware that there is a similar question here, but I read it and it concerns a different problem. Moving on to my problem, every time I am compiling a C file which is used from a function I get the error "MATLAB encountered an internal problem and needs to close". The compiling is done successfully by "Clang" on Mavericks OS X. Here is a screenshot of the error. More details (Matlab report etc.) can be, of course, provided upon request if one needs them to resolve the error.
也可以提供文件.
推荐答案该错误不是由于编译器引起的.一旦运行MEX代码,这是由于分段错误引起的.在该代码的某个位置,您正在访问不应被允许访问的内存.
That error is not because of the compiler. It is due to a segmentation fault once you run the MEX code. Somewhere in that code, you are accessing memory that you shouldn't be allowed to access.
我建议您调试MATLAB代码.在这里查看我的帖子,以了解如何根据您的操作系统调试MEX代码.
I suggest you debug your MATLAB code. Check out my post here to figure out how to debug your MEX code depending on your operating system.
防止MEX文件在MATLAB中崩溃
更多推荐
MATLAB遇到内部错误,需要关闭
发布评论