More efficient way to export output to Excel
이전 댓글 표시
Hello,
I am currently following this method to export the results to one Excel file:
xlswrite('C:\Users\...\Graph.xlsx',{'A' 'B' 'C' 'D'},'Sheet1','A1');
xlswrite('C:\Users\...\Graph.xlsx',PriceA','Sheet1','A2');
xlswrite('C:\Users\...\Graph.xlsx',PriceB','Sheet1','A2');
.
.
etc
There must be a more efficient way that opens the excel file only once, but I am not able to locate it. It is not really logical to write every time separately to the same file.
Any assistance is appreciated.
Thanks
채택된 답변
추가 답변 (1개)
Shashank Prasanna
2013년 8월 30일
편집: Shashank Prasanna
2013년 8월 30일
1 개 추천
You can use the com interface directly. XLSWRITE does this each time when you call it.
Here is an example:
More about COM Interface:
댓글 수: 2
AND
2013년 8월 30일
Shashank Prasanna
2013년 8월 30일
You said your issue is the following. Quote:
There must be a more efficient way that opens the excel file only once, but I am not able to locate it. It is not really logical to write every time separately to the same file.
What I gave you does exactly that.
Regards,
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!