Please help me to remove "/" from following Data.

I have a data format of -FC4F/-FE2C/-F9D5/-FDA0/05A7/0390/0079/04C0/-FA87/006C/-F978/-FA2E/-FF62/-F899/06CE/-FEA0/0686/0570
I need to remove / from the data.

 채택된 답변

KSSV
KSSV 2019년 2월 4일

0 개 추천

S = '-FC4F/-FE2C/-F9D5/-FDA0/05A7/0390/0079/04C0/-FA87/006C/-F978/-FA2E/-FF62/-F899/06CE/-FEA0/0686/0570' ;
idx = strfind(S,'/') ;
S(idx) = []

댓글 수: 3

Thank you for the answer.
Can i replace them by "," ?
KSSV
KSSV 2019년 2월 4일
편집: KSSV 2019년 2월 4일
S(idx) = ','
Or
strrep(S,'/',',')
Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File 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