Problem writing to excel using xlswrite. Can't Find excel server
1 次查看(过去 30 天)
显示 更早的评论
While exporting using xlswrite, MATLAB gives the error:
Warning: Could not start Excel server for export. XLSWRITE will attempt to write file in CSV format.
The cvs output is only a small part of what should be output. Works using IUanyware(online student access) which is what I used to write the code but now with my own computer and a Student version of MATLAB and not having access to that I can't get it to work. I have MATLAB R2018A Student with no add-ons and Excel 2016. Looking at other questions it's been a result of them having a MAC mine is a HP Windows10.
I've also tried using 'actxserver' and 'actxGetRunningServer' and had no results, not sure how to use these to resolve if that's the right approach.
for configuration = 1:Number_of_Configurations
datapoint = datapoint +1;
Table_Systems_Baseline(datapoint,1) = Solar_Panel_Range(configuration);
Table_Systems_Baseline(datapoint,2) = mean(Average_Battery(configuration,:));
Table_Systems_Baseline(datapoint,3) = mean(Average_LOPVG_count(configuration,:,:));
Table_Systems_Baseline(datapoint,4) = mean(Average_LOPVG_loss(configuration,:,:));
Table_Systems_Baseline(datapoint,5) = mean(Average_PV_Utilization(configuration,:,:));
Table_Systems_Baseline(datapoint,6) = mean(Average_Panel_Cost(configuration,:,:));
Table_Systems_Baseline(datapoint,7) = mean(Average_Battery_Cost(configuration,:,:));
Table_Systems_Baseline(datapoint,8) = mean(Average_Capital_Cost(configuration,:));
end
%Writes to the excel file outside of 'For' loop to speed up process.
Column_Names_Systems = {'Solar Panels','Average Batteries','Average LOPVG Count','Average LOPVG loss','Average PV Utilization','Average Cost for Solar Panels','Average Cost for Batteries','Average Capital Cost'};
xlswrite(SAPV_Analysis,Column_Names_Systems,'Baseline','X1')
xlswrite(SAPV_Analysis,Table_Systems_Baseline,'Baseline','X2')
3 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!