| Spreadsheet Link™ EX | ![]() |
| On this page… |
|---|
Automatically Starting the Spreadsheet Link EX Software Manually Starting the Spreadsheet Link EX Software |
When installed and configured according to the instructions in Configuring the Spreadsheet Link EX Software, the Spreadsheet Link EX and MATLAB software automatically start when you start a Microsoft Excel session.
To start the Spreadsheet Link EX and MATLAB software manually from the Excel interface:
Click Tools > Macro.
Enter matlabinit into the Macro Name/Reference box.
For more information about the matlabinit function, see Function Reference.
Click Run.
The MATLAB Command Window button appears on the Microsoft Windows taskbar.
![]()
To connect a new Excel session to an existing MATLAB session, start MATLAB with the spredsheetautomation command-line option. This option starts MATLAB as an automation server. The Command Window is minimized, and the Desktop is not running.
Add the string /automation in the Target field. Remember to leave a space between matlab.exe and /automation.
Click OK.
Note This option works only if the current MATLAB session is a registered automation version. If not, the Excel software starts a new MATLAB session rather than connecting to the existing one. |
To stop both the Spreadsheet Link EX and MATLAB software, stop the Excel session as you normally would.
To stop the Spreadsheet Link EX and MATLAB software and leave the Excel session running, enter the =MLClose() command into an Excel worksheet cell. You can use the MLOpen or matlabinit functions to restart the Spreadsheet Link EX and MATLAB sessions manually.
![]() | Configuring the Spreadsheet Link EX Software | About Functions | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |