| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Spreadsheet Link EX |
| Contents | Index |
| Learn more about Spreadsheet Link EX |
Worksheet: | MLEvalString(command) |
Macro: | MLEvalString command |
command | MATLAB command to evaluate. "command" (in quotation marks) directly specifies the command. command (without quotation marks) 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. |
Passes a command string to the MATLAB software for evaluation. The specified action alters only the MATLAB workspace. It has no effect on the Microsoft Excel workspace.
Divide the MATLAB variable b by 2, and then plot it:
MLEvalString("b = b/2;plot(b)")
This command only modifies the MATLAB variable b. To update data in the Excel worksheet, use MLGetMatrix.
![]() | MLDeleteMatrix | MLGetFigure | ![]() |

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 |