Print out to Excel
1 次查看(过去 30 天)
显示 更早的评论
How do I print out to Excel? Where are my mistakes?
exl = actxserver('excel.application');
exlWkbk = exl.Workbooks;
exlFile = exlWkbk.Open(['C:/Documents and Settings/path/Kerr.xlsm']);
exlSheet1 = exlFile.Sheets.Item('Sheet1');
exl.visible = true;
n=2
for l=1:4
for k=1:4
for j=1:4
for i=1:4
n=n+1
exlSheet1.Range(['B' num2str(n)]).value = "RC(" & i & "," & j & "," & k & "," & l & ")=" & Riemann(i,j,k,l)
end
end
end
end
exlWkbk.Close;
exl.Quit;
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!