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

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

1 comentario

Image Analyst
Image Analyst el 22 de Jul. de 2014
azizullah, quit asking the same question in multiple threads. Now you have two answers to this in different places.

Iniciar sesión para comentar.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 22 de Jul. de 2014
str='asad'''
out=strrep(str,'''','')

3 comentarios

azizullah khan
azizullah khan el 22 de Jul. de 2014
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,'''','')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Jul. de 2014

Comentada:

el 22 de Jul. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by