Error in exporting values using xlswrite
2 ビュー (過去 30 日間)
古いコメントを表示
While exporting using xlswrite, MATLAB gives the error as follows:
Warning: Could not start Excel server for export. XLSWRITE will attempt to write file in CSV format.
This is not a concern since Excel can handle CSV files. But when I checked the exported values, I note that the matrix has been exported into CSV in a scrambled format. Values exported do not correspond to the actual matrix obtained in MATLAB.
I tried exporting with csvwrite as well.
Any help is appreciated.
Thanks in advance.
0 件のコメント
回答 (6 件)
ES
2013 年 9 月 19 日
Do you have MS Excel installed? look at this link please.. http://www.mathworks.in/matlabcentral/answers/21477
Arthur
2013 年 9 月 19 日
As far as I know, Matlab can (still) not access Excel on a mac. xlswrite only works on a pc.
A shame, if you ask me.
1 件のコメント
Lilian Fierro Arcos
2015 年 10 月 9 日
Does anyone know if this issue would be fixed at some point?
8 件のコメント
Walter Roberson
2018 年 1 月 26 日
It is unlikely that MATLAB for Mac will ever support ActiveX to communicate with Excel. ActiveX for Mac and Linux are not common (though they are available). Microsoft's Excel for Mac does not support ActiveX.
Although it is hypothetically possible in time that ActiveX could be built in to Mac and that Microsoft could add ActiveX support, it is not likely:
- Microsoft has given less and less support to the Mac version of Office, as Microsoft has concentrated on Office 365, the cloud version that runs remotely
- There has been discussion over the last few months that Apple might be getting out of the OS-X / MacOS business, possibly abandoning iMac and MacBook lines, with iOS based iPAD Pro line taking over. https://www.digitaltrends.com/computing/will-apple-ever-kill-the-macbook/ and https://9to5mac.com/2017/01/06/2017-beyond-whats-next-for-mac-and-what-of-its-longer-term-future/ and others more explicit that I do not happen to find links for at the moment. It is thus far from clear that MacOS will last long enough for Microsoft to bother adding ActiveX to their Mac version of Office.
Wuqi Song
2020 年 11 月 17 日
You can use writetable() to replace xlswrite(). It works for mac when using writetable().
0 件のコメント
Ali TARRAQ
2021 年 7 月 1 日
You can also use writematrix() instead of writetable() or xlswrite(). It works better for me.
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!