How to load multiple excel files using a loop into MATLAB
Show older comments
Hi,
I have 58 excel files ( S (i).xlsx) and i want to load them all into MATLAB then store them in to two different cells (odd in one and even in another) I can do it one by one but it takes heaps of time. Can you please help me about this?
for i = 1:2:57;
j = 0:2:58;
x_data1 = sprintf('S (%d).xlsx',i);
x_cal = xlsread('S (i).xlsx',y);
x_data2 = sprintf('S (%d).xlsx',j);
x_cal = xlsread(x_data2);
end
PS: I'm a beginner in MATLAB.
Thanks,
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!