MATLAB has stopped working..

I am trying to run a simulation which was built in matlab v 5. and it contains a user defined s function block. which made out of c code. i have that one also..
Now the problem is if i am trying to execute the simulation by calling from matlab program. the matlab crashing after some time.
what i did is. i created a mex file by using mex filename.c. and my compiler is microsoft visual c++ 2008 sp1.
I am using matlab R2010A version.
what will be the problem. how to rectify it.

댓글 수: 2

Walter Roberson
Walter Roberson 2012년 5월 20일
Are you using 32 bit MATLAB or 64 bit MATLAB?
mahesh
mahesh 2012년 5월 21일
32 bit matlab and windows 7 32bit

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

답변 (1개)

Andreas Goser
Andreas Goser 2012년 5월 21일

0 개 추천

I always recommend to "re-MEX" the C-MEX S-Functions when using newer releases. I know this is not always necessary, but it can be automated. In your case if you are coming from a very old release, it is definitetly wise to do it (as you did).
The question is now about the cause of the crash. There should be a crash dump displayed ot at least stored in the temporary directory. If the issue is not in the C Code itself, Technical Support can help you.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

질문:

2012년 5월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by