How to read different csv files?
2 次查看(过去 30 天)
显示 更早的评论
If I have 100 csv files, and each csv file has different format within the file. For example: some csv do have ",", some don't but only have space, and some contain text. I use uigetfile to open multiple files, but I don't know read each file since each of them may be different. Can anyone help me with this? Thank you for your time.
0 个评论
采纳的回答
Star Strider
2018-3-24
The readtable (link) function would be my preference. It is very good at reading files with different data formats. (It was introduced in R2013b.)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Large Files and Big Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!