Getting warning: Could not start Excel server for export. XLSWRITE will attempt to write file in CSV format.

XLSWRITE does not write the Excel file or a CSV file. I'm using a program that I know works on another computer, but to simplify testing I've tried running the following from the command line: xlswrite('testdata.xls', [1 2 3]). I get the same warning and nothing is written.
I am running Matlab R2012a, Excel 2007, Windows 7. Matlab and Excel are installed locally.
I have looked for the answer from other threads, but could not find a solution. Any help would be appreciated.

 채택된 답변

If you are using a 64 bit MATLAB but the excel is 32 bit then you would not be able to communicate with it.
Meanwhile try xlwrite from the file exchange

댓글 수: 2

I am running 64 bit MATLAB with 32 bit Excel. Thanks, I will look into xlwrite.
I have got the same problem and solved it through opening the service 'Matlab Server'.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Sometimes it may be overlooked, but can you check if you can open an Excel file in Excel by double clicking that file? I had this error reported before and it was due to corrupted Excel installation.
Myraj
Myraj 2019년 4월 11일
Hi
I had this error and I resolve it by changing the comma " , " in the configration on control panel/clock, region and language / region and language/ additional settings/ decimal symbol and put " . " or change the format to french(france) when it's changed directly.
good luck

카테고리

태그

질문:

2016년 4월 25일

답변:

2019년 4월 11일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by