Reputation: 3180
What is the simplest way to programmatically export Excel data to Matlab?
Upvotes: 7
Views: 5903
Reputation:
In more recent Matlab releases there are also csvread()
and writetable()
that work with csv which can easily be opened in Excel.
Upvotes: 3
Reputation: 17189
As has been said, XLSREAD is the right function for the job. On a non-Windows system it will also work without Excel installed. However, it supposedly lacks some of Excels advanced features.
Upvotes: 1
Reputation: 44118
If you are running Matlab on Windows with Excel installed, try XLSREAD.
Upvotes: 7
Reputation: 12175
For a bit of $$$, you can get the MATLAB add-on Excel Link, which provides a nice clean interface for transferring data back and forth between the two programs.
Upvotes: 1
Reputation: 12175
If there's not much text annotation in the Excel file, save it as a csv, then use the MATLAB function csvread.
Upvotes: 4