Remove some portion from a sentance...

1 Ansicht (letzte 30 Tage)
azizullah khan
azizullah khan am 22 Jul. 2014
Kommentiert: Joseph Cheng am 22 Jul. 2014

Akzeptierte Antwort

Geoff Hayes
Geoff Hayes am 22 Jul. 2014
Since the single quote appears at the end of the string, then just remove that last character
urlStr = 'http://www1.interactivebrokers.ch/contract_info/index2.php?action=Details&site=GEN&conid=81578645''';
urlStr = urlStr(1:end-1);
  1 Kommentar
Joseph Cheng
Joseph Cheng am 22 Jul. 2014
if there are additional erroneous ' in there you could do,
urlStr(strfind(urlStr,''''))=[];

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by