Matlab has encountered an internal problem and needs to close

7 views (last 30 days)
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

Accepted Answer

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

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!