rc = ddepoke(channel,item,data,format,timeout)
rcThe return code: 0 indicates the function call failed, 1 indicates it succeeded.
channelddeinit.
itemitem is the server data entity that is to contain the data sent in the data argument.
dataformattimeouttimeout is specified in milliseconds (1000 milliseconds = 1 second). The default timeout is three seconds.
ddepoke sends data to an application via an established DDE conversation. ddepoke formats the data matrix before sending it to the server application. String matrices are converted, element by element, to characters and the resulting character buffer is sent. Numeric matrices are sent as tab-delimited columns and carriage-return, line-feed delimited rows of numbers. Only the real part of non-sparse matrices are sent.
% Send a 5x5 identity matrix to Excel
rc = ddepoke(channel, 'r1c1:r5c5', eye(5));
ddeexec,ddeinit,ddereq,ddeterm,ddeunadv,ddeadv
(c) Copyright 1994 by The MathWorks, Inc.