Find the days whose maximum temperature does not exceed 0 ° C

Good morning,
I found the maximum values of my temperature table with the following wording:
x_day=retime(x,'daily','max');
I would like the system to create a table with the dates when the maximum temperature did not exceed 0 ° C.

 採用された回答

dpb
dpb 2022 年 7 月 18 日

0 投票

Just select with logical indexing -- you didn't give name of the temp variable so spelling may be different, salt to suit...
tZeroMax=x_day(x_dat.Temp_Max<=9,:);

2 件のコメント

Alice Bacchilega
Alice Bacchilega 2022 年 7 月 18 日
Thank you so much for your reply! Have a good day
dpb
dpb 2022 年 7 月 18 日
Glad to help -- amazing how simple things can often be in MATLAB, isn't it!!!??? :)
Logical indexing is a most powerful tool...

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeTables についてさらに検索

質問済み:

2022 年 7 月 18 日

コメント済み:

dpb
2022 年 7 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by