| Contents | Index |
MLGetVar ML_var_name, VBA_var_name
out = MLGetVar ML_var_name, VBA_var_name
MLGetVar ML_var_name, VBA_var_name writes the contents of MATLAB matrix ML_var_name in the Excel Visual Basic for Applications (VBA) variable VBA_var_name. Creates VBA_var_name if it does not exist. Replaces existing data in VBA_var_name.
out = MLGetVar ML_var_name, VBA_var_name lets you catch errors when executing MLGetVar. If MLGetVar fails, then out is a string containing error code. Otherwise, out is 0.
out |
0 if the command succeeded. Otherwise, a string containing error code. |
Write the contents of the MATLAB matrix J into the VBA variable DataJ:
Sub Fetch() MLGetVar "J", DataJ End Sub

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |