mexEvalStringWithTrap (C および Fortran)
呼び出し側のワークスペースで MATLAB コマンドを実行し、エラー情報を取得する
C 構文
#include "mex.h" mxArray *mexEvalStringWithTrap(const char *command);
Fortran 構文
#include "fintrf.h" mwPointer mexEvalStringWithTrap(command) character*(*) command
説明
関数 mexEvalStringWithTrap
は、mexEvalString
と同じ関数を実行します。ただし、command
の実行中に MATLAB® がエラーを検出した場合、MATLAB は、MEX ファイル内で mexEvalStringWithTrap
の呼び出しの直後にある行に制御を戻します。