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

11 visualizaciones (últimos 30 días)
azizullah khan
azizullah khan el 22 de Jul. de 2014
Comentada: Image Analyst el 22 de Jul. de 2014
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
Lucas
Lucas el 22 de Jul. de 2014
a = 'asad'''
a(a == '''') = []
Azzi Abdelmalek
Azzi Abdelmalek el 22 de Jul. de 2014
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 Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by