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

11 vues (au cours des 30 derniers jours)
azizullah khan
azizullah khan le 22 Juil 2014
Commenté : Image Analyst le 22 Juil 2014
asad' want to replace ' and obtain asad
need general code.
  1 commentaire
Image Analyst
Image Analyst le 22 Juil 2014
azizullah, quit asking the same question in multiple threads. Now you have two answers to this in different places.

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 22 Juil 2014
str='asad'''
out=strrep(str,'''','')
  3 commentaires
Lucas
Lucas le 22 Juil 2014
a = 'asad'''
a(a == '''') = []
Azzi Abdelmalek
Azzi Abdelmalek le 22 Juil 2014
Ok, that's what the code do, just write
out=strrep(str,'''','')

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by