登录论坛

查看完整版本 : [求助]从excel读数据的问题


mathjiang
2008-08-26, 21:27
各位大侠,偶从excel读入数据遇到下述问题,请问问题何在?
越详细越好哈。


》xlsread('petrol.xls','a2:i11')
??? Error using ==> xlsread at 262
File D:\我的文档\MATLAB\petrol.xls not in Microsoft Excel Format.

pslpsl
2008-08-26, 21:49
xlsread('petrol.xls','sheet1','a2:i11')

如果工作表名不是sheet1,改成相应的

mathjiang
2008-08-26, 22:03
又见到pslpsl,不甚感激哈。