Evaluate MATLAB command given Microsoft Excel data
= matlabfcn(
specifies
the MATLAB® command for evaluation in the MATLAB workspace,
given the input data command
,inputs
)inputs
. Depending upon the MATLAB output, matlabfcn
returns
a single value or string into the calling worksheet cell. If the result
contains more than one value in MATLAB, only the first value
in the array returns in the calling worksheet cell. Use this syntax
when working in a worksheet cell.
If matlabfcn
fails, a standard Spreadsheet Link™ error
displays by default; for example, #COMMAND
. To
return MATLAB errors, use MLShowMatlabErrors
.