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

9 Ansichten (letzte 30 Tage)
azizullah khan
azizullah khan am 22 Jul. 2014
Kommentiert: Image Analyst am 22 Jul. 2014
asad' want to replace ' and obtain asad
need general code.
  1 Kommentar
Image Analyst
Image Analyst am 22 Jul. 2014
azizullah, quit asking the same question in multiple threads. Now you have two answers to this in different places.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 22 Jul. 2014
str='asad'''
out=strrep(str,'''','')
  3 Kommentare
Lucas
Lucas am 22 Jul. 2014
a = 'asad'''
a(a == '''') = []
Azzi Abdelmalek
Azzi Abdelmalek am 22 Jul. 2014
Ok, that's what the code do, just write
out=strrep(str,'''','')

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by