what's the special symbol in a string

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

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

More Answers (1)

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

Asked:

on 10 Dec 2018

Edited:

on 10 Dec 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!