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 Center および File ExchangeText Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by