Reading multiple number of an EXCEL file without knowing number of rows and columns
1 回表示 (過去 30 日間)
古いコメントを表示
Hello, In code below i have to specify the range for columns but i have 100 set of excel files in that with different column length so how to specify in that case
[~,~,raw]=xlsread(fullFileName,'Results','B:B'); % reads all rows in Column B
raw(any(cellfun(@(x) any(isnan(x)),raw),2),:) = []; % removes all NaN entries#
data = reshape([raw{:}],size(raw));
Blob = data(:,1);
Area = data(:,2);
clearvars data raw;
h=bar(Area);
After then I would like to plot them I am getting error
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2014 年 4 月 3 日
To read all the rows just write
[a,b,c]=xlsread('filename.xls')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!