MATLAB遇到内部错误,需要关闭 [英] MATLAB encountered an internal error and needs to close

查看:2194
本文介绍了MATLAB遇到内部错误,需要关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我知道这里有一个类似的问题,但我读过它,它涉及一个不同的问题.继续解决我的问题,每次我编译从函数使用的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遇到内部错误,需要关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆