How to remove (;) from a string?

I have a string '[1;0;0;0;1;0;0;0;1;0;0;0;1;0;0;0;1;0;0;0;1;0;0;0]'
how to remove ';' so that I can get output as 100010001000100010001000
help me out
than you

回答 (1 件)

the cyclist
the cyclist 2019 年 10 月 3 日

0 投票

If s is your string, then
s = regexprep(s,';','')
will remove the semicolons from it.

この質問は閉じられています。

質問済み:

2019 年 10 月 3 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by