how to calculate extreme events

3 次查看(过去 30 天)
varunesh
varunesh 2014-3-20
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!

回答(1 个)

Image Analyst
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!

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by