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