MATLAB Answers

Yu Li
0

what's the special symbol in a string

Asked by Yu Li
on 10 Dec 2018
Latest activity Edited by Yu Li
on 10 Dec 2018
Accepted Answer by Jan
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

  0 Comments

Sign in to comment.

2 Answers

Answer by Jan
on 10 Dec 2018
 Accepted Answer

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

  1 Comment

Sign in to comment.


Answer by Sean de Wolski
on 10 Dec 2018

erase(tmp, newline)

  1 Comment

this works as well, thank you so much!

Sign in to comment.