Borrar filtros
Borrar filtros

what's the special symbol in a string

1 visualización (últimos 30 días)
Yu Li
Yu Li el 10 de Dic. de 2018
Editada: Yu Li el 10 de Dic. de 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

Respuesta aceptada

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

Más respuestas (1)

Sean de Wolski
Sean de Wolski el 10 de Dic. de 2018
erase(tmp, newline)
  1 comentario
Yu Li
Yu Li el 10 de Dic. de 2018
Editada: Yu Li el 10 de Dic. de 2018
this works as well, thank you so much!

Iniciar sesión para comentar.

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by