MATLAB read/write/control Excel
No License
On a Windows platform, MATLAB's XLSREAD and XLSWRITE open Excel as a COM automation server in the background to read/write data. Sometimes users want XLSREAD and XLSWRITE to do more, and would like their own custom XLSREAD or XLSWRITE functions (such as a custom XLSWRITE that puts data into multiple worksheets, and creates Excel charts at the same time).
Little new functionality is contained in this submission compared to what is already contained in Brett Shoelson's submission referenced below. Whereas Brett Shoelson's "Write2Excel.m" is a cleanly packaged solution, this is an open script intended to show what's going on, to empower users to create their own enhanced XLSREAD and XLSWRITE.
Cite As
George Thiers (2025). MATLAB read/write/control Excel (https://www.mathworks.com/matlabcentral/fileexchange/18459-matlab-read-write-control-excel), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Spreadsheets >
- Reporting and Database Access > MATLAB Report Generator >
Tags
Acknowledgements
Inspired by: write2excel
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
XLSREAD/
XLSWRITE/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |