Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to remove (;) from a string?

7 次查看(过去 30 天)
N M Channabasavayya
关闭: MATLAB Answer Bot 2021-8-20
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

回答(1 个)

the cyclist
the cyclist 2019-10-3
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