Effacer les filtres
Effacer les filtres

what's the special symbol in a string

1 vue (au cours des 30 derniers jours)
Yu Li
Yu Li le 10 Déc 2018
Modifié(e) : Yu Li le 10 Déc 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

Réponse acceptée

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

Plus de réponses (1)

Sean de Wolski
Sean de Wolski le 10 Déc 2018
erase(tmp, newline)
  1 commentaire
Yu Li
Yu Li le 10 Déc 2018
Modifié(e) : Yu Li le 10 Déc 2018
this works as well, thank you so much!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by