I want to convert a text file into csv formate. How I can do that?

2 views (last 30 days)
I want to convert a text file into csv formate. How I can do that?
  3 Comments

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 5 Aug 2022
readtable to read the text file. writetable to write to csv (or xlsx) format.
Note: this approach might have difficulty if there are headers in the text file, or if the data is not in clear column format.

Categories

Find more on Prepare Model Inputs and Outputs 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!