我在我的matlab程序中写过:
EnergyfromSun = xlsread('C:\Homa\Thesis\Matlab\SC\ASTMG173num.xls');
但我收到了这条消息:
??? No appropriate method, property, or field UsedRange for class
Interface.Microsoft_Excel_14.0_Object_Library._Chart.
Error in ==> xlsread at 302
DataRange = Excel.ActiveSheet.UsedRange;
Error in ==> T2011 at 10
EnergyfromSun = xlsread('C:\Homa\Thesis\Matlab\SC\ASTMG173num.xls');
>>
这个excel表有2列和2002行,我使用的是matlab 7.11.0版本请帮助我,我太困惑了。谢谢霍玛
>
我做到了,但我得到了同样的按摩:
??? No appropriate method, property, or field UsedRange for class
Interface.Microsoft_Excel_14.0_Object_Library._Chart.
Error in ==> xlsread at 302
DataRange = Excel.ActiveSheet.UsedRange;
Error in ==> T2011 at 10
[~,~,EnergyfromSun] = xlsread('C:\Homa\Thesis\Matlab\SC\ASTMG173num.xls');
>>