Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to remove (;) from a string?

4 vues (au cours des 30 derniers jours)
N M Channabasavayya
N M Channabasavayya le 3 Oct 2019
Clôturé : MATLAB Answer Bot le 20 Août 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

Réponses (1)

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

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by