Replace the Tab to Space in txt

13 ビュー (過去 30 日間)
Dung Tran
Dung Tran 2023 年 5 月 23 日
コメント済み: Dung Tran 2023 年 5 月 23 日
1 2 3 5 6
7 8 9 10 11
hi I have text file as above, between 1 and 2 is "tab", I want to replace this "tab" by a "Space" as below:
1 2 3 5 6
7 8 9 10 11
I'm working the txt in Timetable.

採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 5 月 23 日
1st, read the data using readtable() and then write it back to .txt or .csv file using writetable, e.g.:
D = readtable('Data.txt');
writetable(D,'Data.txt','Delimiter',' ');
Or an easy-peasy way is use of [Ctrl] + [H] from keyboard and substitute the tabs with a single space.
  1 件のコメント
Dung Tran
Dung Tran 2023 年 5 月 23 日
thank you very much. it worked !!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDesktop についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by