Matlab has encountered an internal problem and needs to close

5 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Kaustubha Govind
Kaustubha Govind il 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.

Più risposte (0)

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by