Definition of fiter in data by text in colomn

1 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Signal Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by