How can i convert multiples lines into 1 text string (big block)
2 ビュー (過去 30 日間)
古いコメントを表示
so my file is like:
abcdef
abcdef
abcdef
abcdef
and i would like them to be in 1 text string without enters: 'abcdefabcdefabcdefabcdef'
0 件のコメント
回答 (2 件)
J. Webster
2016 年 4 月 22 日
file = textread('text.txt', '%s', 'whitespace','');
file will be a cell array containing the string you want.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!