- Use “squeeze” function to get the trend values for different years over the different latitude and longitude values.
- Use polynomial fitting using “polyfit” function to calculate the value of trend over the years.
- Create a mesh-grid for latitude and longitude.
- Plot the required trend.
- squeeze: https://www.mathworks.com/help/matlab/ref/squeeze.html
- polyfit: https://www.mathworks.com/help/matlab/ref/polyfit.html
- meshgrid: https://www.mathworks.com/help/matlab/ref/meshgrid.html
- surf: https://www.mathworks.com/help/matlab/ref/surf.html