how to judge some bytes is or not a-z,A-Z?

조회 수: 4 (최근 30일)
Roger
Roger 2014년 6월 27일
편집: Mischa Kim 2014년 6월 27일
i read some files using fread ,then some bytes display like blank , but there is sth.,i want to delete these special chars ,how to make it ? thanks

채택된 답변

Mischa Kim
Mischa Kim 2014년 6월 27일
편집: Mischa Kim 2014년 6월 27일
Roger, use regular expressions, something like
str = 'a b{}c1230O /&" â'
str =
a b{}c1230O /&" â
str_rep = regexprep(str,'[^a-zA-Z0-9]','')
str_rep =
abc1230O

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by