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

2 visualizaciones (últimos 30 días)
I want to convert a text file into csv formate. How I can do that?
  3 comentarios
ARIF HUSSAIN
ARIF HUSSAIN el 5 de Ag. de 2022
The file is some logs. Actually different coloums.
ARIF HUSSAIN
ARIF HUSSAIN el 5 de Ag. de 2022
File has numeric and string data

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 5 de Ag. de 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.

Categorías

Más información sobre Prepare Model Inputs and Outputs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by