フィルターのクリア

Upload text file and rearrange columns

2 ビュー (過去 30 日間)
HB
HB 2020 年 8 月 6 日
編集済み: HB 2021 年 3 月 5 日
Hi,
I am trying to input the file attached titled "input_file.txt" into MATLAB and organise the content so as to output in the format as seen in "desired_output.xlsx".

回答 (1 件)

Monisha Nalluru
Monisha Nalluru 2020 年 8 月 11 日
For loading the txt file into MATLAB, you can use importdata.
In order to process data into desired output, you can use split function which will be helpful to discard the sentence at required delimiter.
For writing the data to excel you can use writecell, writetable, writematrix depending on the way data is stored.

カテゴリ

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