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.

 Akzeptierte Antwort

Star Strider
Star Strider am 24 Mär. 2018

1 Stimme

The readtable (link) function would be my preference. It is very good at reading files with different data formats. (It was introduced in R2013b.)

2 Kommentare

noname
noname am 24 Mär. 2018
Thanks!!
Star Strider
Star Strider am 24 Mär. 2018
As always, my pleasure!
You can use the table2array function to create a numeric array from the table.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu App Building finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 24 Mär. 2018

Kommentiert:

am 24 Mär. 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by