フィルターのクリア

Search through CSV to find certain words/numbers in cell

4 ビュー (過去 30 日間)
new2matlab
new2matlab 2020 年 1 月 27 日
コメント済み: new2matlab 2020 年 2 月 19 日
I have a large CSV file containing various columns of names, numbers, links, etc and want to search through each row to find the ones that contain a certain time (so that I can later delete the others and run the program with the variables, or rows, that I choose. Not sure where to begin, but maybe:
  • list the rows that contain the requested cell info?
  • instantly delete the rows that dont contain this?
  • only run the rows with it?
  2 件のコメント
Mohammad Sami
Mohammad Sami 2020 年 1 月 28 日
編集済み: Mohammad Sami 2020 年 1 月 28 日
If you have time I would recommend you to complete the Matlab onramp course.
For reading csv files, either use the GUI to import and generate import function, or use the readtable function.
For searching columns containing text, use the function contains. It will return you all rows which contain the specified word(s).
For finding exact values use the ismember function with the values you want to find.
new2matlab
new2matlab 2020 年 2 月 19 日
Will do! Thank you!

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by