HOW TO DATA FILTER

7 次查看(过去 30 天)
Saptorshee Chakraborty
Hello, I have a data of Patents from OECD in delimited text format with IPC code being one column, I want to filter the data by selecting only certain IPC codes in that column. Please, can anybody guide me doing it, also the IPC codes are string variables.

回答(1 个)

Walter Roberson
Walter Roberson 2017-12-30
Probably the easiest way is to readtable() and then select only the rows where the desired codes are, probably using ismember
selected_data = TheTable(ismember(TheTable{:,ColumnNumber}, ListOfDesiredCodes))

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by