how do I display all the text on one line?
Show older comments
Hi everyone, I have a problem: I extracted the text on matlab using str = extractFileText (filename) command, when I press on run my output in the command window gives me the text with the original formatting, while to me you need to make the text appear on a single line. How can I do? thanks in advance to those who answer me
Accepted Answer
More Answers (1)
Monika Jaskolka
on 20 Mar 2020
2 votes
Did you try removing the newlines (or other formatting characters)?
5 Comments
Emanuela riccio
on 20 Mar 2020
Monika Jaskolka
on 20 Mar 2020
What is the problem you are seeing? This solution in the above link works for me. In the image below I have a multi-line string str that is dispalyed at a single line of text.

Emanuela riccio
on 20 Mar 2020
Monika Jaskolka
on 20 Mar 2020
I tried printing text that is 100 lines and I did not experience a problem. Please provide the file that you are using.
Emanuela riccio
on 20 Mar 2020
Edited: Emanuela riccio
on 20 Mar 2020
Categories
Find more on Data Import and Export in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!