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 Comments

Are you using 32 bit MATLAB or 64 bit MATLAB?
32 bit matlab and windows 7 32bit

Sign in to comment.

Answers (1)

Andreas Goser
Andreas Goser on 21 May 2012

0 votes

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.

Categories

Tags

Asked:

on 20 May 2012

Community Treasure Hunt

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

Start Hunting!