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

Answers (1)

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

This question is closed.

Asked:

on 3 Oct 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!