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

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

1 Comment

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

Sign in to comment.

 Accepted Answer

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

3 Comments

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

Sign in to comment.

More Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!