Remove some portion from a sentance...

1 visualización (últimos 30 días)
azizullah khan
azizullah khan el 22 de Jul. de 2014
Comentada: Joseph Cheng el 22 de Jul. de 2014

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 22 de Jul. de 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 comentario
Joseph Cheng
Joseph Cheng el 22 de Jul. de 2014
if there are additional erroneous ' in there you could do,
urlStr(strfind(urlStr,''''))=[];

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by