Delete data from the following minutes from data that does not meet a certain condition

1 回表示 (過去 30 日間)
tamara N
tamara N 2021 年 3 月 22 日
コメント済み: tamara N 2021 年 3 月 22 日
Hi, I have a database in timetable format. I need to filter for those data that do not meet a certain condition.
I need to remove those data where "I" (a variable) is greater than 4 and also remove the values of the next 10 minutes when I> = 4.
Thanks.

回答 (1 件)

Seth Furman
Seth Furman 2021 年 3 月 22 日
  1 件のコメント
tamara N
tamara N 2021 年 3 月 22 日
Yes, with that I only remove the values> = 4 which I think would be something like this:
DATA((DATA{:,3}<=4),:)=[]
but I don't need to remove only the data> = 4, but also the data after 10 minutes of that reading. I have a 50000x20 timetable, where the column I have to evaluate is 3. I think I also have to use loops and conditional instructions. I do not know how to do it.

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

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by