what's the special symbol in a string

1 回表示 (過去 30 日間)
Yu Li
Yu Li 2018 年 12 月 10 日
編集済み: Yu Li 2018 年 12 月 10 日
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

採用された回答

Jan
Jan 2018 年 12 月 10 日
tmp(tmp < 32) = []
This remove all control characters, e.g. char(10), the line break.
  1 件のコメント
Yu Li
Yu Li 2018 年 12 月 10 日
thank you

サインインしてコメントする。

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2018 年 12 月 10 日
erase(tmp, newline)
  1 件のコメント
Yu Li
Yu Li 2018 年 12 月 10 日
編集済み: Yu Li 2018 年 12 月 10 日
this works as well, thank you so much!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by