Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How to remove (;) from a string?

5 visualizzazioni (ultimi 30 giorni)
N M Channabasavayya
N M Channabasavayya il 3 Ott 2019
Chiuso: MATLAB Answer Bot il 20 Ago 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

Risposte (1)

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

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by