How can i convert multiples lines into 1 text string (big block)
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
so my file is like:
abcdef
abcdef
abcdef
abcdef
and i would like them to be in 1 text string without enters: 'abcdefabcdefabcdefabcdef'
0 Commenti
Risposte (2)
J. Webster
il 22 Apr 2016
file = textread('text.txt', '%s', 'whitespace','');
file will be a cell array containing the string you want.
0 Commenti
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!