What is the simplest way to programmatically export Excel data to Matlab?
5 Answers
If you are running Matlab on Windows with Excel installed, try XLSREAD.
2 Comments
b3.
The xlsread function that Jouni mentioned works well. If you want some finer control over Excel consider using ActiveX to interact with the Excel file. Check out the MATLAB help for COM client support. I've used this approach to create Excel files but you could also use it to implement advanced programmatic reading of files.
Dennis Jaheruddin
Note that having Excel installed is no longer a requirement. mathworks.nl/help/matlab/ref/xlsread.html