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

조회 수: 1 (최근 30일)
ARIF HUSSAIN
ARIF HUSSAIN 2022년 8월 5일
답변: Walter Roberson 2022년 8월 5일
I want to convert a text file into csv formate. How I can do that?
  댓글 수: 3
ARIF HUSSAIN
ARIF HUSSAIN 2022년 8월 5일
The file is some logs. Actually different coloums.
ARIF HUSSAIN
ARIF HUSSAIN 2022년 8월 5일
File has numeric and string data

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2022년 8월 5일
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.

카테고리

Help CenterFile Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by