필터 지우기
필터 지우기

Definition of fiter in data by text in colomn

조회 수: 1 (최근 30일)
Marek Drliciak
Marek Drliciak 2022년 8월 26일
댓글: Marek Drliciak 2022년 8월 26일
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
  댓글 수: 1
KSSV
KSSV 2022년 8월 26일
@Marek Drliciak you are supposed to accept the answer which I have shown.

댓글을 달려면 로그인하십시오.

채택된 답변

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