Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to remove (;) from a string?

6 ビュー (過去 30 日間)
N M Channabasavayya
N M Channabasavayya 2019 年 10 月 3 日
閉鎖済み: 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