Initialize Spreadsheet Link and start MATLAB
matlabinit initializes the Spreadsheet Link™ software and starts MATLAB®. If the Spreadsheet Link software has been initialized and MATLAB is running, subsequent invocations do nothing. Use
matlabinit to start Spreadsheet Link and MATLAB sessions manually when you have set the
MLAutoStart preference to
no. If you set
matlabinit function executes automatically.
Initialize Spreadsheet Link and MATLAB from Microsoft Excel Toolbar
While you use Microsoft® Excel®, initialize Spreadsheet Link and start MATLAB manually any time by using the Excel toolbar.
On the Developer tab, in the Code group, click Macros.
In the Macro name box, enter
matlabinit and click
Spreadsheet Link initializes and MATLAB starts. You can now use Spreadsheet Link to import data from MATLAB or export existing data in the worksheet into MATLAB and run MATLAB functions in Excel.
You can include the
matlabinitfunction in a macro subroutine.
You cannot run the
matlabinitfunction as a worksheet cell formula or in a macro function.
matlabinitis a macro subroutine. Subroutines cannot run as functions in a worksheet cell. Only Excel functions can be run in a worksheet cell.
You can execute
MLOpen to start MATLAB.
- Set Spreadsheet Link Preferences
- Create Diagonal Matrix Using Microsoft Excel Ribbon
- Create Diagonal Matrix Using Microsoft Excel Context Menu
- Create Diagonal Matrix Using Worksheet Cells
- Create Diagonal Matrix Using VBA Macro
- Find and Execute MATLAB Function Using MATLAB Function Wizard
- Execute Spreadsheet Link Functions