Remove some portion from a sentance...

조회 수: 1 (최근 30일)
azizullah khan
azizullah khan 2014년 7월 22일
댓글: Joseph Cheng 2014년 7월 22일

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by