Technical Solutions
Do you have any examples on how to import data to MATLAB from Excel using DDE?
Date Last Modified: Friday, June 26, 2009
| Solution ID: | 1-19BU0 | |
| Product: | MATLAB | |
| Reported in Release: | R11.1 | |
| Fixed in Release: | R14SP1 | |
| Platform: | Windows | |
| Operating System: | Windows Any |
Subject:
Do you have any examples on how to import data to MATLAB from Excel using DDE?
Problem Description:
I would like examples on how to import data to MATLAB from Excel using DDE.
Solution:This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, read below for any possible workarounds: Once you get your data into a matrix, you can manipulate the data. One useful command is
myvariable=mymatrix2(:,1)
This command extracts the first column from the matrix 'mymatrix2' and saves the data to the variable'myvariable'. For an example using ActiveX, please refer to the "Related Solutions" below: For an example that uses Excel Link, please refer to the "Related Solutions" below: For information on how to use the XLSREAD function to read .xls files, please refer to the following URL: http://www.mathworks.com/access/helpdesk/help/techdoc/ref/xlsread.shtml |
Related Solutions:
|
|
Store

