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

조회 수: 11 (최근 30일)
azizullah khan
azizullah khan 2014년 7월 22일
댓글: Image Analyst 2014년 7월 22일
asad' want to replace ' and obtain asad
need general code.
  댓글 수: 1
Image Analyst
Image Analyst 2014년 7월 22일
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일
str='asad'''
out=strrep(str,'''','')
  댓글 수: 3
Lucas
Lucas 2014년 7월 22일
a = 'asad'''
a(a == '''') = []
Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 22일
Ok, that's what the code do, just write
out=strrep(str,'''','')

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by