External Interfaces |
|
Accessing MATLAB as a Server
Note
The MATLAB DDE server is disabled by default. To enable the DDE server start MATLAB with the /Automation option.
|
A client application can access MATLAB as a DDE server in the following ways, depending on the client application:
- If you are using an application that provides functions or macros to conduct DDE conversations, you can use these functions or macros. For example, Microsoft Excel, Word for Windows, and Visual Basic provide DDE functions or macros. For more information about using these functions or macros, see the appropriate Microsoft documentation.
- If you are creating your own application, you can use the MATLAB Engine Library or DDE directly. For more information about using the Engine Library, see Using the MATLAB Engine. For more information about using DDE routines, see the Microsoft Windows Programmer's Guide.
The figure below illustrates how MATLAB communicates as a server. DDE functions in the client application communicate with the MATLAB DDE server module. The client's DDE functions can be provided by either the application or the MATLAB Engine Library.
| Dynamic Data Exchange (DDE) | | The DDE Name Hierarchy | |
© 1994-2005 The MathWorks, Inc.