rc = ddepoke(channel,item,data,format,timeout)
rcThe return code: 0 indicates the function call failed, 1 indicates it succeeded.
itemis the server data entity that is to contain the data sent in the
timeoutis specified in milliseconds (1000 milliseconds = 1 second). The default
timeoutis three seconds.
ddepokesends data to an application via an established DDE conversation.
ddepokeformats 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 Excelrc = ddepoke(channel, 'r1c1:r5c5', eye(5));
(c) Copyright 1994 by The MathWorks, Inc.