フィルターのクリア

how to calculate the maximum consecutive dry days and wet days over time period?

12 ビュー (過去 30 日間)
Tomi Afrizal
Tomi Afrizal 2017 年 8 月 9 日
編集済み: Koyel Sur 2018 年 5 月 21 日
I have matrix (189x189) of daily precipitation in 20 years period (7300 files). I want to calculate the consecutive dry days and wet days in that period, where dry days is RR<1 and wet days is RR>1. can any one help me about this problem?
  2 件のコメント
KSSV
KSSV 2017 年 8 月 9 日
Is 189X189 matrix is RR?
Tomi Afrizal
Tomi Afrizal 2017 年 8 月 9 日
yes, 189x189 is matrix of RR.

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

採用された回答

AbhimanyuSingh
AbhimanyuSingh 2017 年 8 月 9 日
RR=randi([-255,255],189,189); % Prepare a random precipitation data %Assumption that RR is matrices of 189x189 and containing precipitation data if this assumption is correct then below mentioned steps will work dryDays=RR<1; noOfDryDays=find(dryDays); noOfWetDays=find(~dryDays);
Or Else First you need to import data in a variable then use above code snippets
  3 件のコメント
AbhimanyuSingh
AbhimanyuSingh 2017 年 8 月 10 日
Please find attached two '.m' files it will help you to find the maximum no. of the consecutive day.
Koyel Sur
Koyel Sur 2018 年 5 月 21 日
編集済み: Koyel Sur 2018 年 5 月 21 日
The above attached codes are not working
error in this line[StartDay,Enddate,maxdryconsDay]=ConsecutiveCalcDays(noOfDryDays). Kindly solve

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by