作者tomcoollee (jeremy)
看板MATLAB
標題[問題] Excel 無法讀檔 >"<
時間Sun Aug 26 21:16:54 2012
小弟初學 Matlab
按照 Mathworks 的網站教學去學關於 xlsread 的使用方法
http://www.mathworks.com/help/techdoc/ref/xlsread.html
按照上面網頁中的 Example 去學
程式碼如下
------------------------------------------------------------------------------
>> values = {1, 2, 3 ; 4, 5, 'x' ; 7, 8, 9};
>> headers = {'First', 'Second', 'Third'};
>> xlswrite('myExample.xlsx', [headers; values]);
>> A = xlsread('myExample.xlsx')
??? Error: Object returned error code: 0x800AC472
Error in ==> xlsread at 241
Excel.DisplayAlerts = 0;
------------------------------------------------------------------------------
網站上的Example截圖
http://ppt.cc/dWRr
我自己跑程式碼的截圖
http://ppt.cc/iCGM
照理說步驟是完全一模一樣 >"< 但是結果卻是 Error
想請教版上大大解惑 m(_ _)m 感謝!!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.192.252.226
1F:推 WRO:我複製貼上OK耶,亂猜一下你的office能開xlsx嗎? 08/28 09:36
2F:→ tomcoollee:可以 >"< 後來我把它存成csv檔就可以讀...也不知為什麼 08/28 22:35