| External Interfaces | ![]() |
Example -- Importing Data From an Excel Application
Assume that you have an Excel spreadsheet stocks.xls. This spreadsheet contains the prices of three stocks in row 3 (columns 1 through 3) and the number of shares of these stocks in rows 6 through 8 (column 2). Initiate conversation with Excel with the command
DDE functions require the rxcy reference style for Excel worksheets. In Excel terminology the prices are in r3c1:r3c3 and the shares in r6c2:r8c2.
Request the prices from Excel:
Next, request the number of shares of each stock:
| Using MATLAB as a Client | DDE Advisory Links | ![]() |
© 1994-2005 The MathWorks, Inc.