作者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