有没有办法在mex文件中创建try-catch语句?

时间:2013-06-19 11:51:26

标签: matlab error-handling mex

我知道在C中没有内置的方法来执行try-catch语句,但MATLAB是否为MEX文件提供了任何类型的try-catch功能?我试图以http://www.di.unipi.it/~nids/docs/longjump_try_trow_catch.html中描述的方式使用LongjmpSetjmp,但我没有成功。还有其他人想出办法吗?

1 个答案:

答案 0 :(得分:3)