Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to remove (;) from a string?

2 visualizaciones (últimos 30 días)
N M Channabasavayya
N M Channabasavayya el 3 de Oct. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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
If s is your string, then
s = regexprep(s,';','')
will remove the semicolons from it.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by