loading in a folder of excel files
Ältere Kommentare anzeigen
I have a folder of excel files and I want to load in all of the data from all the files into Matlab to analyze the data. There are about 50,000 files and 100 pieces of data in each. How can I get Matlab to load in all of the data at once without having to do each file manually?
4 Kommentare
Pieter Hamming
am 15 Aug. 2018
As Stephen commented: use a for loop over all the file names. If needed, use dir(*.xlsx) to get a list of all excel files in the current directory.
Getting the data from each file is probably easiest using xlsread.
Bob Thompson
am 15 Aug. 2018
xlsread with a for loop is definitely the simplest way to get the data, but you might investigate the ActiveX capability for quicker usage.
Adam Danz
am 15 Aug. 2018
If you get stuck, try searching for the answer first. This task has been addressed very many times here in the forum.
Antworten (0)
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!