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

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

1 Kommentar

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

0 Stimmen

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

3 Kommentare

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,'''','')

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu App Building finden Sie in Hilfe-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