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일
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

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

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

질문:

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