フィルターのクリア

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,:) ;
  1 件のコメント
Marek Drliciak
Marek Drliciak 2022 年 8 月 26 日
Now it is ok.
Your advice was useful.
Sorry

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSignal Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by