how to find specific string out of a list in an excel

1 ビュー (過去 30 日間)
Ihaveaquest 2022 年 8 月 8 日
編集済み: Ihaveaquest 2022 年 8 月 9 日
file = read('file');
pattern = strcmp('9',file);
row = find(pattern==1);
  2 件のコメント
Ihaveaquest 2022 年 8 月 8 日
yes and yes yes yes yes to all .. csv file with 1000lines but theres a column with value 9 and 17 that i need the full like row info
thank you



Walter Roberson
Walter Roberson 2022 年 8 月 8 日
data = readtable('FileNameGoesHere');
mask = data{:,ColumnNumberGoesHere} == 9;
subset = data(mask,:);
writetable(subset, 'sampletable.txt');
  2 件のコメント
Image Analyst
Image Analyst 2022 年 8 月 8 日
@Juan you again forgot to attach your data file and say what string pattern you're looking for. So that leads me to believe you did not read the Community Guidelines or Tutorial.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by