what's the special symbol in a string

1 Ansicht (letzte 30 Tage)
Yu Li
Yu Li am 10 Dez. 2018
Bearbeitet: Yu Li am 10 Dez. 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

Akzeptierte Antwort

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

Weitere Antworten (1)

Sean de Wolski
Sean de Wolski am 10 Dez. 2018
erase(tmp, newline)
  1 Kommentar
Yu Li
Yu Li am 10 Dez. 2018
Bearbeitet: Yu Li am 10 Dez. 2018
this works as well, thank you so much!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by