Azzera filtri
Azzera filtri

what's the special symbol in a string

1 visualizzazione (ultimi 30 giorni)
Yu Li
Yu Li il 10 Dic 2018
Modificato: Yu Li il 10 Dic 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

Risposta accettata

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

Più risposte (1)

Sean de Wolski
Sean de Wolski il 10 Dic 2018
erase(tmp, newline)
  1 Commento
Yu Li
Yu Li il 10 Dic 2018
Modificato: Yu Li il 10 Dic 2018
this works as well, thank you so much!

Accedi per commentare.

Categorie

Scopri di più su Characters and Strings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by