フィルターのクリア

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

13 ビュー (過去 30 日間)
azizullah khan
azizullah khan 2014 年 7 月 22 日
コメント済み: Image Analyst 2014 年 7 月 22 日
asad' want to replace ' and obtain asad
need general code.
  1 件のコメント
Image Analyst
Image Analyst 2014 年 7 月 22 日
azizullah, quit asking the same question in multiple threads. Now you have two answers to this in different places.

サインインしてコメントする。

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 22 日
str='asad'''
out=strrep(str,'''','')
  3 件のコメント
Lucas
Lucas 2014 年 7 月 22 日
a = 'asad'''
a(a == '''') = []
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 22 日
Ok, that's what the code do, just write
out=strrep(str,'''','')

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by