how to calculate extreme events
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Image Analyst
le 20 Mar 2014
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 commentaires
Voir également
Catégories
En savoir plus sur Legend dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!