External Interfaces Reference Previous page   Next Page
Execute

Execute MATLAB command in server

Syntax

MATLAB Client

Method Signature

Visual Basic Client

Description

The Execute function executes the MATLAB statement specified by the string command in the MATLAB Automation server attached to handle h.

The server returns output from the command in the string, result. The result string also contains any warning or error messages that might have been issued by MATLAB as a result of the command.

Note that if you terminate the MATLAB command string with a semicolon and there are no warnings or error messages, result might be returned empty.

Remarks

If you want to be able to display output from Execute in the client window, you must specify an output variable (i.e., result in the above syntax statements).

Server function names, like Execute, are case sensitive when used with dot notation (the first syntax shown).

All three versions of the MATLAB client syntax perform the same operation.

Examples

Execute the MATLAB version function in the server and return the output to the MATLAB client.

MATLAB Client

Visual Basic Client

See Also

Feval, PutFullMatrix, GetFullMatrix, PutCharArray, GetCharArray


Previous page  enableservice Feval Next page

© 1994-2005 The MathWorks, Inc.