mexCallMATLABWithTrap (C および Fortran)
MATLAB 関数、ユーザー定義関数、または MEX ファイルの呼び出しと、エラー情報の取得
C 構文
#include "mex.h" mxArray *mexCallMATLABWithTrap(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[], const char *functionName);
Fortran 構文
#include "fintrf.h" mwPointer mexCallMATLABWithTrap(nlhs, plhs, nrhs, prhs, functionName) integer*4 nlhs, nrhs mwPointer plhs(*), prhs(*) character*(*) functionName
説明
関数 mexCallMATLABWithTrap
は、mexCallMATLAB
と同じ関数を実行します。ただし、functionName
の実行中に MATLAB® がエラーを検出した場合、MATLAB は、MEX ファイル内で mexCallMATLABWithTrap
の呼び出しの直後にある行に制御を戻します。
入力引数
出力引数
バージョン履歴
R2008b で導入