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

Respuestas (1)

the cyclist
the cyclist el 3 de Oct. de 2019

0 votos

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

La pregunta está cerrada.

Etiquetas

Preguntada:

el 3 de Oct. de 2019

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by