Multiple lines in one cell using textscan
Mostra commenti meno recenti
Hey,
I am trying to read files in which each data entry is limited by ";".
If I use textscan and set ';' as delimiter, it starts new cells when it reaches ";", but also every time a new line starts.
Is there a way to get textscan to only start a new cell when it reads the delimiter and ignore newline characters?
Thanks in advance.
4 Commenti
Ameer Hamza
il 30 Nov 2020
Modificato: Ameer Hamza
il 30 Nov 2020
Experiment with the 'LineEnding' option in textscan(). Attaching a sample file will help in suggesting a solution.
David-Sharif Kohlberger
il 30 Nov 2020
Ameer Hamza
il 30 Nov 2020
Can you show the textscan command you are using? LineEnding is introduced in later releases.
David-Sharif Kohlberger
il 30 Nov 2020
Risposte (0)
Categorie
Scopri di più su Text Data Preparation 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!