Remove/replace ' i.e single quote from a sentance ...

asad' want to replace ' and obtain asad
need general code.

댓글 수: 1

azizullah, quit asking the same question in multiple threads. Now you have two answers to this in different places.

댓글을 달려면 로그인하십시오.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 22일

0 개 추천

str='asad'''
out=strrep(str,'''','')

댓글 수: 3

there is single quote with asad like str='asad'' i want to remove single quote...
a = 'asad'''
a(a == '''') = []
Ok, that's what the code do, just write
out=strrep(str,'''','')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 App Building에 대해 자세히 알아보기

태그

질문:

2014년 7월 22일

댓글:

2014년 7월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by