필터 지우기
필터 지우기

How do I remove unwanted strings from a table imported from excel?

조회 수: 3 (최근 30일)
Adekunle Obasa
Adekunle Obasa 2014년 2월 25일
댓글: Image Analyst 2014년 2월 28일
I read an excel table that contains 5 columns of values and 1 column of string. I want to remove some text from the string column such that if the text stands all alone on a line, the entire row is deleted.Please, see the attached file.
In the worksheet, I want to remove "<Thread>", "<ThreadID>289123_4_3</ThreadID>","<InitPost>" etc.

답변 (1개)

Image Analyst
Image Analyst 2014년 2월 25일
Attach the workbook and your calls to readtable() . If you don't have the latest MATLAB and are having to use xlsread() instead, then let us see your code, or else upgrade where this will be a lot easier.
  댓글 수: 4
Adekunle Obasa
Adekunle Obasa 2014년 2월 28일
No, I don't have R2013b. I'm using R2012b.
Image Analyst
Image Analyst 2014년 2월 28일
Well, in general, to remove something, set that element to [].

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by