How know error when matlab is failed down?

조회 수: 2 (최근 30일)
samar mahmoud
samar mahmoud 2018년 4월 23일
댓글: samar mahmoud 2018년 4월 23일
I compiled a .cpp file by mex function and it is compiled successfully but when run the code the matlab is crashed and ask me to stop and restart it.
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.
How can i know the error and any idea to expected where is error?
  댓글 수: 2
James Tursa
James Tursa 2018년 4월 23일
You have a bug in your C++ code. You need to post your code before we can help you. If the code is too large, try to boil it down to a small example that reproduces the problem and post that.
Steven Lord
Steven Lord 2018년 4월 23일

Here are some instructions on how to troubleshoot MEX-files. [I don't know how much of this is release specific, so if you're using an older release you may want to search for the version of this documentation page in your installation's local documentation.]

댓글을 달려면 로그인하십시오.

답변 (1개)

Mary Rokicki
Mary Rokicki 2018년 4월 23일
You have a bug in your C++ code. You need to post your code before we can help you. If the code is too large, try to boil it down to a small example that reproduces the problem and post that.
  댓글 수: 1
samar mahmoud
samar mahmoud 2018년 4월 23일

I have posted the code in error was detected while a MEX-file was running? and run the code many times and found the error in input pr[13] but cannot know what error. can anyone help me?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by