Main Content
matlabsub
Evaluate MATLAB command given Microsoft Excel data and designate output location
Description
Examples
Input Arguments
Tips
To return an array of data to the Microsoft® Excel Visual Basic® for Applications (VBA) workspace, see
MLEvalString
andMLGetVar
.result
must not include the cell that containsmatlabsub
. 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, useMLShowMatlabErrors
.
Version History
Introduced before R2006a