HOW TO DATA FILTER

2 Ansichten (letzte 30 Tage)
Saptorshee Chakraborty
Saptorshee Chakraborty am 30 Dez. 2017
Beantwortet: Walter Roberson am 30 Dez. 2017
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.

Antworten (1)

Walter Roberson
Walter Roberson am 30 Dez. 2017
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))

Kategorien

Mehr zu Instrument Control Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by