Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_37486501/article/details/86662749
These matrices into one matrix, and write-once.
b=[];
for i=1:10
a=ones(3,2)*rand;
b=[b;a];
end
xlswrite('a.xls',b,'sheet1','A1');
As shown below:
each row is kept, the first matrix merged
together saved to a file