how to calculate extreme events
3 ビュー (過去 30 日間)
古いコメントを表示
sir i have 95 year daily model output rainfall data form 2006-1-1 to 2100-1-1.i want to calculate extreme events.if Anyone have any ideas how I can do this in matlab or program then please help me .Thank you!
0 件のコメント
回答 (1 件)
Image Analyst
2014 年 3 月 20 日
Like rainiest day, month, season, or year and dryest day, month, season, or year? I would think a for loop and/or the sum(), min(), max(), median(), std() and mean() functions would come in useful, assuming your data has already been imported into an array in MATLAB. If not, try readtable(), csvread(), importdata(), dlmread(), and lots of other functions for reading in data. For example if you have a 365 row (day) by 95 column (year) array, then the wettest January:
allJanuaryDays = array(1:31,:); % Rainfall from every January date for every year.
monthlySums = sum(allJanuaryDays, 1); % Sum over days
[wettestSum, indexOfWettestYear] = max(monthlySums);
And if you have the ability to accurately predict rainfall from today through the year 2100, please come to work in our town!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!