Matlab has encountered an internal problem and needs to close

Good afternoon! I create s-function on C from an example csfunc.c. I create mex. Also I try to connect it in simulink the block s-function. But there is an error "Matlab has encountered an internal problem and needs to close" and closes matlab. Somebody had such error? Or it is better to address in technical support...
Thanks

 Réponse acceptée

Kaustubha Govind
Kaustubha Govind le 1 Mar 2011
Did you modify the S-function? If yes, it is likely that your code is causing a segmentation violation causing MATLAB to shut down. Please read How Do I Debug C MEX S-Functions for information on debugging your S-function.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by