Azzera filtri
Azzera filtri

Definition of fiter in data by text in colomn

1 visualizzazione (ultimi 30 giorni)
hello,
I would like to ask you for advice on the filter. I need to define a basic filter.
Filter all rows labeled "P1" in column 4.
data file contain more than mil rows with P1-P20 values
I tried
Data_P1=Data(Data(:,4)=="P1",:)
but it's bad
thank you

Risposta accettata

KSSV
KSSV il 26 Ago 2022
idx = strcmp(Data.(4),'P1') ;
T1 = T(idx,:) ;

Più risposte (0)

Categorie

Scopri di più su Signal Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by