MATLAB遇到内部错误,需要关闭

编程入门 行业动态 更新时间:2024-10-24 23:30:19
本文介绍了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遇到内部错误,需要关闭

本文发布于:2023-11-15 19:20:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1597247.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   MATLAB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!