Borrar filtros
Borrar filtros

Definition of fiter in data by text in colomn

1 visualización (últimos 30 días)
Marek Drliciak
Marek Drliciak el 26 de Ag. de 2022
Comentada: Marek Drliciak el 26 de Ag. de 2022
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

Respuesta aceptada

KSSV
KSSV el 26 de Ag. de 2022
idx = strcmp(Data.(4),'P1') ;
T1 = T(idx,:) ;

Más respuestas (0)

Categorías

Más información sobre Signal Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by