| Excel Link | ![]() |
Description
Creates or overwrites matrix var_name in MATLAB workspace with specified data in mdat. Creates var_name if it does not exist. If var_name already exists, this function replaces the contents with mdat. mdat must contain either numeric data or string data. Data types cannot be combined within the range specified in mdat. Empty mdat cells become MATLAB matrix elements containing zero if the data is numeric and empty strings if the data is a string.
Example
MLPutMatrix("A", A1:C3)
creates or overwrites matrix A in the MATLAB workspace with the data in the worksheet range A1:C3.
See Also
MLAppendMatrix, MLGetMatrix
| MLOpen | MLPutVar | ![]() |