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

1 Ansicht (letzte 30 Tage)
Adekunle Obasa
Adekunle Obasa am 25 Feb. 2014
Kommentiert: Image Analyst am 28 Feb. 2014
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.

Antworten (1)

Image Analyst
Image Analyst am 25 Feb. 2014
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 Kommentare
Adekunle Obasa
Adekunle Obasa am 28 Feb. 2014
No, I don't have R2013b. I'm using R2012b.
Image Analyst
Image Analyst am 28 Feb. 2014
Well, in general, to remove something, set that element to [].

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Cell Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by