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

1 回表示 (過去 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 Center および File ExchangeProgramming についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by