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

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

1 Commento

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

Accedi per commentare.

 Risposta accettata

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

3 Commenti

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su App Building in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by