Matlab has encountered an internal problem and needs to close

조회 수: 5 (최근 30일)
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

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 3월 1일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by