Problem with a string .
이전 댓글 표시
Hello here is my string :
'abc "abc" '
I need to throw out single quotation mark and replace double quotation mark to single quotation mark so the output will be :
abc 'abc'
How to do it ?
Thanks a lot.
채택된 답변
추가 답변 (1개)
Sean de Wolski
2013년 9월 17일
doc strrep
Here it is:
str = '''abc "abc" '''
str2 = strrep(strrep(str,'''',''),'"','''')
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!