how to calculate extreme events
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Image Analyst
el 20 de Mzo. de 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 comentarios
Ver también
Categorías
Más información sobre Legend en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!