Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to remove (;) from a string?

2 Ansichten (letzte 30 Tage)
N M Channabasavayya
N M Channabasavayya am 3 Okt. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 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

Antworten (1)

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

Community Treasure Hunt

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

Start Hunting!

Translated by