フィルターのクリア

Extracting a section of data with conditions

1 回表示 (過去 30 日間)
Taylor Swaim
Taylor Swaim 2022 年 2 月 21 日
コメント済み: Image Analyst 2022 年 2 月 21 日
I have two sets of data that correspond to one another: altitude and time. I have the time in datetime format and converted it to minutes (double). I need to extract the data from both between a specific time interval (start_t and end_t).
I think where I am running into trouble is my altitude is in a 837x1 table format.
  1 件のコメント
Image Analyst
Image Analyst 2022 年 2 月 21 日
"I have two sets of data" <== yes but we don't because you forgot to attach them.
What if you just do
rowsToExtract = t.altitude > start_t & t.altitude < end_t;
altitude = t.altitude(rowsToExtract);
If that doesn't work, then blame it on me not having any data to work with.

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

回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by