how to read date and time from worksheets in a excel spreadsheet?
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I have an excel spreadsheet with several worksheets. I would like to import data from each worksheet into matlab as a separate matrix. I think xlsread works best, but I can only do it manually i.e. A = xlsread('testfile.xls',1); B=xlsread('testfile.xls',2) etc. i tried putting it into loop as for(i=1:10); data(:,:,i)=xlsread('testfile.xls',i); using this i get an error" ??? Subscripted assignment dimension mismatch. ".
this may be because all the worksheet is not of same dimensions, how can i proceed with it? thanks in advance...
0 件のコメント
回答 (2 件)
ES
2013 年 11 月 21 日
Keep your for loop in place, and Use a cell array to get your values.
for i=1:10
data{i}=xlsread('testfile.xls',i);
end
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!