| MATLAB Application Program Interface Reference | Help Desk |
ddeinit
Initiate DDE conversation between MATLAB and another applicationchannel = ddeinit(service, topic)
channelThe channel assigned to the conversation.
serviceA string that specifies the service or application name for the conversation.
topicA string that specifies the topic for the conversation.
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.
% Initiate a conversation with Microsoft Excel
% for the spreadsheet 'forecast.xls'.
channel = ddeinit('excel', 'forecast.xls');