Import .txt files from folder
显示 更早的评论
Hi,
I have a buch of .txt files that i would like to import into matlab and put underneath oneanother in one big matrix.
I have put the files in sperate folders like January, February etc. until May.
Each txt file have headers in the first line.
Thanks in advance
3 个评论
There are several ways to import text. Choosing the best method depends on the format of your data. Here's a description of some of those methods.
You'll probably loop through each file to read them in individually and then concatenate the data. If you don't already have a list of file names to feed into the loop, you can generate a list of (all) files in a directory using dir().
simen ommundsen
2019-5-8
Adam Danz
2019-5-8
Nice work!
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!