writing multiple 2D matrices in 1 excel file
8 次查看(过去 30 天)
显示 更早的评论
I have multiple variables containing 2D data that I want to write in either xls or txt file.
Suppose in each iteration I get A = [50x2], B=[10x2], C=[13x2], D=[11x2], E=[15x2], I want to write all this data in the same excel sheet. Is it possible. Any help appreciated. TIA.
0 个评论
采纳的回答
更多回答(1 个)
KSSV
2017-8-28
A = rand(10,3) ;
B = rand(3,3) ;
dlmwrite('test.txt',A,'-append')
dlmwrite('test.txt',B,'-append')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!