Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

mexEvalStringWithTrap (C and Fortran) - Execute MATLAB command in caller's workspace and capture error information

C Syntax

#include "mex.h"
mxArray *mexEvalStringWithTrap(const char *command);

Fortran Syntax

mwPointer mexEvalStringWithTrap(command)
character*(*) command

Arguments

command

String containing the MATLAB command to execute

Returns

an object ME of class MException

Description

The mexEvalStringWithTrap function performs the same function as mexEvalString. However, if MATLAB detects an error when executing command, MATLAB returns control to the line in the MEX-file immediately following the call to mexEvalStringWithTrap.

See Also

mexEvalString, MException, mexCallMATLAB

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS