How to export to excel?
Afficher commentaires plus anciens
Hi everyone, I just installed excel(2016) in my Mac so I tried the below code just then it shows the following error.
ans =
1.6629028619989176615049162203409
xlswrite('a.xls','ans')
Warning: Could not start Excel server for export. XLSWRITE will attempt to write file in CSV format.
7 commentaires
Walter Roberson
le 21 Août 2018
MATLAB can only talk to Excel directly on MS Windows that has Office installed. For all other systems (Mac, Linux, Windows without Office) then xlswrite() is restricted to writing csv files.
Paolo's suggestion of writetable() is a good one: writetable() can create .xls and .xlsx files on all systems.
madhan ravi
le 21 Août 2018
madhan ravi
le 21 Août 2018
Modifié(e) : madhan ravi
le 21 Août 2018
madhan ravi
le 21 Août 2018
Walter Roberson
le 21 Août 2018
"xlswrite command won't work even if excel is installed?"
xlswrite() cannot communicate directly with Excel, except on MS Windows that has MS Office installed. COM object support is not compiled into the Mac version of Excel, so even if you were to install one of the COM libraries for Mac, it would not be possible to communicate with Excel that way.
This is a Microsoft restriction.
madhan ravi
le 21 Août 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!