MLGetFigure
Import current MATLAB figure into Microsoft Excel worksheet
Description
Examples
Input Arguments
Tips
If you use Microsoft® Excel 2007 or 2010,
MLGetFigure
scales the imported figure by the product ofwidth
andheight
along both dimensions.If worksheet calculation mode is automatic, the software executes
MLGetFigure
when you enter the formula in a cell. If worksheet calculation mode is manual, enter theMLGetFigure
function in a cell, then pressF9
to execute it. Note that pressingF9
can also execute other worksheet functions and generate unpredictable results.If you use
MLGetFigure
in a macro subroutine, enterMatlabRequest
on the line afterMLGetFigure
. The execution ofMatlabRequest
initializes internal Spreadsheet Link variables and enablesMLGetFigure
to function in a subroutine. Do not includeMatlabRequest
in a macro function unless the function is called from a subroutine.To work with VBA code in Excel with Spreadsheet Link, you must enable Spreadsheet Link as a reference in the Microsoft Visual Basic Editor. For details, see Installation.
Version History
Introduced in R2006b