How to obtain one excel file instead of multiple file?
Show older comments
I have 10 excel file in a folder. I have fetch 1st column from each file using for loop. I want to create another excel file containing these 10 column, but I get 10 different excel file instead of one file. How can I overcome this problem?
Area{i}=xlsread(filename,sheet,'A:A');
xlswrite(strcat('D:\result_excel\AREA','.xls'),Area{i},1)
Accepted Answer
More Answers (1)
Star Strider
on 24 Apr 2015
1 vote
I would put the xlswrite call after the for loop rather than in it.
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!