MATLAB Application Program Interface Reference | Help Desk |
mexEvalString
Execute a MATLAB command in the workspace of the caller
integer*4 function mexEvalString(command) character*(*) commandcommand
A character
array containing the MATLAB command to execute.
mexEvalString
to invoke a MATLAB command in the workspace of the caller.
mexEvalString
and mexCallMATLAB
both execute MATLAB commands. However, mexCallMATLAB
provides a mechanism for returning results (left-hand side arguments) back to the MEX-file; mexEvalString
provides no way for return values to be passed back to the MEX-file.
All arguments that appear to the right of an equals sign in the command array must already be current variables of the caller's workspace.
mexCallMATLAB