what's the special symbol in a string

1 view (last 30 days)
Yu Li
Yu Li on 10 Dec 2018
Edited: Yu Li on 10 Dec 2018
I have a string like below:
Untitled.jpg
can anyone know what makes it become three lines? I need to remove it to become a normal string.
Thanks!
Yu

Accepted Answer

Jan
Jan on 10 Dec 2018
tmp(tmp < 32) = []
This remove all control characters, e.g. char(10), the line break.

More Answers (1)

Sean de Wolski
Sean de Wolski on 10 Dec 2018
erase(tmp, newline)
  1 Comment
Yu Li
Yu Li on 10 Dec 2018
Edited: Yu Li on 10 Dec 2018
this works as well, thank you so much!

Sign in to comment.

Categories

Find more on Characters and Strings 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!