将计算结果写入Excel相应的扉页中

filename = 'testdata.xlsx';
sheet1=1;
sheet2=2;
A = [12.7 5.02 -98 63.9 0 -.2 56];
B = [2.8 6.02 -98 63.9 0 -.2 56];
xlswrite(filename,A,sheet1);%结果写入sheet1中
xlswrite(filename,B,sheet2);%结果写入sheet2中 
发布了59 篇原创文章 · 获赞 4 · 访问量 3182

猜你喜欢

转载自blog.csdn.net/weixin_41639107/article/details/102923763