| MATLAB Application Program Interface | Search  Help Desk |
| ddeinit | Examples |
Initiate DDE conversation between MATLAB and another application
Syntax
channel = ddeinit(service, topic)
Arguments
channel
service
topic
Description
ddeinit requires two arguments: a service or application name and a topic for that service. The function returns a channel handle, which is used with other MATLAB DDE functions.
For more information about services and topics, see the "DDE Concepts and Terminology" section in the Application Program Interface Guide.
Example
% Initiate a conversation with Microsoft Excel
% for the spreadsheet 'forecast.xls'.
channel = ddeinit('excel', 'forecast.xls');