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.

 Réponse acceptée

KSSV
KSSV le 4 Fév 2019
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 commentaires

Thank you for the answer.
Can i replace them by "," ?
KSSV
KSSV le 4 Fév 2019
Modifié(e) : KSSV le 4 Fév 2019
S(idx) = ','
Or
strrep(S,'/',',')
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by