Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to remove (;) from a string?

조회 수: 4 (최근 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