필터 지우기
필터 지우기

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개)

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 CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by