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 件のコメント

Rakesh Yadav Kodari
Rakesh Yadav Kodari 2019 年 2 月 4 日
Thank you for the answer.
Can i replace them by "," ?
KSSV
KSSV 2019 年 2 月 4 日
編集済み: KSSV 2019 年 2 月 4 日
S(idx) = ','
Or
strrep(S,'/',',')
Rakesh Yadav Kodari
Rakesh Yadav Kodari 2019 年 2 月 4 日
Thank you

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および 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