フィルターのクリア

Rain rate Calculating and plotting CCDF and percentage of time that the rain rate exceeded.

10 ビュー (過去 30 日間)

How can I calculate and plot the complementary cumulative distribution functions (CCDF) for the one minutes rain rate?

in the attached mat file first columns Day, month , year, hours, minutes, and ran rate reading at that respective minute.

- I want to calculate and plot the CCDF for these readings. - I want to Calculate the percentage of time that the rain rate exceeded.

attached an example image.

hope you explain in a bit of details

  2 件のコメント
Muhammad Usman Saleem
Muhammad Usman Saleem 2016 年 4 月 2 日
send it in excel if it is data. Other wise post its code. File not opening on my PC
Muhammad Usman Saleem
Muhammad Usman Saleem 2016 年 4 月 2 日
編集済み: Muhammad Usman Saleem 2016 年 4 月 2 日
(1) there are a lot 0 values in the data set. Which will baise your plot. Also tell me
(2) whether you want to create plot of time (in second , created from minute column) with rate?
(3) Tell me formula of % time

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

採用された回答

Kuifeng
Kuifeng 2016 年 4 月 3 日
編集済み: Kuifeng 2016 年 4 月 3 日
data = importdata('RainRate.txt');
day = data(:,1);
mth = data(:,2);
yr = data(:,3);
time_hr = data(:,4);
time_min = data(:,5);
RainfallIntensity = data(:, 6);
N = length(RainfallIntensity)+1; %total duration, min
hist(RainfallIntensity);
[nelements,RainRate] = hist(RainfallIntensity,20); %count frequency of rainrate
Prob = nelements/N; %probability
%estimate cum- probability
Cum_prob(1) = Prob(1);
for i = 2:20
Cum_prob(i) = Cum_prob(i-1)+Prob(i);
end
loglog(1-Cum_prob, RainRate);
  1 件のコメント
Mohammad AboZeed
Mohammad AboZeed 2016 年 4 月 3 日
編集済み: Mohammad AboZeed 2016 年 4 月 3 日
thank you so much, let me just verify if this is correct.

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by