Evaluate MATLAB command given Microsoft Excel data and designate output location
To return an array of data to the Microsoft® Excel Visual Basic® for
Applications (VBA) workspace, see MLEvalString
and MLGetVar
.
result
must not include the cell
that contains matlabsub
. Do not overwrite the
function itself.
Ensure that there is enough room in the worksheet for writing matrix contents. If there is insufficient room, the function generates a fatal error.
If matlabsub
fails, a standard Spreadsheet Link™ error
displays by default; for example, #COMMAND
. To
return MATLAB errors, use MLShowMatlabErrors
.