how to split these char format into lines
Mostra commenti meno recenti
I have a char format data which is read from the last several lines of a file, from Linux system, by command provide by this answer:

however, I failed to find the way to split them into lines, I tried 'split' function with different deliminter such as '/t','/n', etc., but all failed.
could anyone give me some suggestions? please see attahce file.
Thanks!
Yu
Risposta accettata
Più risposte (1)
Walter Roberson
il 17 Lug 2020
regexp(w, '\r?\n', 'split')
Categorie
Scopri di più su Structures in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!