error using xlsread command in matlab
Show older comments
I have written in my matlab program:
EnergyfromSun = xlsread('C:\Homa\Thesis\Matlab\SC\ASTMG173num.xls'); but I got this message:
??? 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');
>> This excel sheet has 2 columns and 2002 rows and I am using matlab 7.11.0 version Please help me, I am too confused. Thanks Homa
4 Comments
Lalit Patil
on 27 Nov 2012
Try this.
EnergyfromSun = xlsread('C:\Homa\Thesis\Matlab\SC\ASTMG173num.xlsx');
or
EnergyfromSun = xlsread('C:/Homa/Thesis/Matlab/SC/ASTMG173num.xls');
Jan
on 27 Nov 2012
@Lalit: I do not assume, that the filename is wrong. Using the backslash is valid under Windows.
Walter Roberson
on 27 Nov 2012
Is there a chart in the .xls file? Is there anything other than plain data?
Homa
on 27 Nov 2012
Accepted Answer
More Answers (0)
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!