Calculate mean and standard deviation from 30-years of global wind data
Mostrar comentarios más antiguos
I have a dataset of global 1-degree latitude, longitude, and wind data for 30 years. I'd like to create a 3-d matrix of mean wind data for each latitude and longitude point for each of the 30 years (matrix size 180x360x30) then find the standard deviation of mean wind at each lat/long based on the 30 years of data.
So let's say I have a 40,000 data points (i=40000) that include year(i), latitude(i), longitude(i), and wind(i). What's the best streamlined approach to creating this new 3-d dataset (mean wind) and finding the standard deviation for each 1-degree grid cell?
Respuesta aceptada
Más respuestas (1)
Steven Lord
el 28 de En. de 2026
0 votos
Consider using groupsummary, specifying the groupbins input argument to control how the data is discretized into bins.
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!