file extraction...error.
Show older comments
hi i am running this code and getting this error for some reason.can anybody help why???
d = dir('*.xls'); N_File = numel(d); % no of files present in the folder for same class
for num = 1:N_File
k = fullfile(d(num).name);
[~,~,dat] = xlsread(d(num).name);
C = [C;num2cell(num*ones(size(dat,1),1)),dat];
end
??? [~,~,dat] = xlsread(d(num).name); | Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
1 Comment
Walter Roberson
on 15 Dec 2011
http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Accepted Answer
More Answers (0)
Categories
Find more on Data Import from MATLAB 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!