Excel Link | ![]() ![]() |
Write contents of MATLAB matrix in Excel VBA variable
Syntax
MLGetVar ML_var_name, VBA_var_name
Description
Writes the contents of MATLAB matrix ML_var_name
in the Excel VBA variable VBA_var_name
. Creates VBA_var_name
if it does not exist. Replaces existing data in VBA_var_name
. Use MLGetVar
only in a macro subroutine, not in a macro function or in a subroutine called by a function.
Example
writes the contents of MATLAB matrix J
in the VBA variable named DataJ
.
See Also
![]() | MLGetMatrix | MLOpen | ![]() |