Find text in a variable which contains texts and numbers
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!