Remove some portion from a sentance...
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
azizullah khan
il 22 Lug 2014
Commentato: Joseph Cheng
il 22 Lug 2014
i want to remove ', and obtain the remaining expression...
write general code.... i want to obtain http://www1.interactivebrokers.ch/contract_info/index2.php?action=Details&site=GEN&conid=81578645
2 Commenti
Risposta accettata
Geoff Hayes
il 22 Lug 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 Commento
Joseph Cheng
il 22 Lug 2014
if there are additional erroneous ' in there you could do,
urlStr(strfind(urlStr,''''))=[];
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Structures in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!