MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   在MATLAB中将几个矩阵导出为Excel (https://www.labfans.com/bbs/showthread.php?t=26545)

poster 2019-12-14 20:13

在MATLAB中将几个矩阵导出为Excel
 
我想将n个矩阵写到一个excel文件中,如果我想2个在同一页面中,而另两个在同一页面中,该怎么做

我有

xlswrite('file.xls', matrix1, 'page1', 'A1'); xlswrite('file.xls', matrix2, 'page1', 'A50'); 有没有办法使动态第四个参数像

xlswrite('file.xls', matrix2, 'page1', 'A'%size(matrix));

[B]回答:[/B]

你可以试试:

xlswrite('file.xls', matrix2, 'page1', ['A' num2str(length(matrix2))]); 希望能有所帮助。



[url=https://stackoverflow.com/questions/5244440]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 12:44

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.