フィルターのクリア

Find text in a variable which contains texts and numbers

1 回表示 (過去 30 日間)
Kelly Kyriakou
Kelly Kyriakou 2015 年 11 月 26 日
コメント済み: Kelly Kyriakou 2016 年 9 月 20 日
I read a csv file and store the data in a variable with the readtable command. This variable contains both text and numbers. How I could find the row of specific text?

採用された回答

Image Analyst
Image Analyst 2015 年 11 月 26 日
You could use ismember on the column of text, something like
loc = ismember(yourTable(:, 3), 'sometext');
if your text is in column 3. It will return the row the search text is in.
  11 件のコメント
Walter Roberson
Walter Roberson 2015 年 11 月 27 日
Kelly, does that mean that your problem is solved?
Kelly Kyriakou
Kelly Kyriakou 2016 年 9 月 20 日
yes!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by