Excel Link    
MLEvalString

Evaluate command in MATLAB

Syntax

Worksheet:
MLEvalString(command)
Macro:
MLEvalString command
command
MATLAB command to evaluate. "command" (in quotes) directly specifies the command. command (without quotes) is an indirect reference: the function evaluates the contents of command to get the command, and command must be a worksheet cell address or range name.

Description

Passes the command string to MATLAB for evaluation. The specified action alters only the MATLAB workspace. Nothing is done in the Excel workspace.

Example

divides the MATLAB variable b by 2 and plots it. Only the MATLAB variable b is modified. To update data in the Excel worksheet, use MLGetMatrix.

See Also

MLGetMatrix


  MLDeleteMatrix MLGetMatrix