MATLAB has stopped working..
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 20 Mai 2012
Are you using 32 bit MATLAB or 64 bit MATLAB?
mahesh
le 21 Mai 2012
Réponses (1)
Andreas Goser
le 21 Mai 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.
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!