struc2xls

STRUC2XLS Writes the contents os a structure into an Excel file
4.6K 次下载
更新时间 2014/5/1

查看许可证

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')

引用格式

Francisco de Castro (2024). struc2xls (https://www.mathworks.com/matlabcentral/fileexchange/18530-struc2xls), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Spreadsheets 的更多信息
致谢

启发作品: struc2xls

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Repaired a bug: if a struct field is a character cell array, each letter was written in a different cell in the excel file.

1.0.0.0

Additional arguments: worksheet name, row and column.