You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Slow and dirty way to save a simple structure to an Excel file with xlswrite. I did it to solve a urgent problem for a friend. Lots of improvements possible, I'm sure.
STRUC2XLS (FILE,S) writes the contents of structure S to a excel file named FILE. The name of the worksheet and the starting row and column can be specified as optional arguments.
Example:
s=struct('one',[1,2],'two',[10,20,30],'three',[100,200,300,400]);
struct2xls('s2xls',s,'Row',4,'Col','D')
Cite As
Francisco de Castro (2026). struc2xls (https://www.mathworks.com/matlabcentral/fileexchange/18530-struc2xls), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: struc2xls
General Information
- Version 1.1.0.0 (1.56 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
