Is there a way to make try-catch statements in mex files?

조회 수: 2 (최근 30일)
Robert
Robert 2013년 6월 13일
I know that there is no built-in way to do try-catch statements in C, but has Matlab facilitated any type of try-catch functionality for mex files? I tried to use Longjmp and Setjmp in the way described in http://www.di.unipi.it/~nids/docs/longjump_try_trow_catch.html, but I was not successful. Has anyone else figured out a way?

답변 (1개)

Jan
Jan 2013년 6월 13일
What about using try-catch by writing the code in C++?
  댓글 수: 4
Robert
Robert 2013년 6월 19일
Thanks. There seems to be a problem with your link though.
Walter Roberson
Walter Roberson 2013년 6월 19일
Link repaired.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by