I am using meshm
to plot densities.
How do I calculate the center point for each of the bins? I want to associate the data in m with the centerpoints I have looked at the source code of meshm
and believe the solution will be a modified version of meshm
that returns the latitude and longitudes of each bin's center point.
meshm
calls the function meshgrat
which returns the latitude and longitude points of the mesh that will be plotted by surfacem
. The problem is that the lat and lon matrices are not the same size as m. I need to match the latitude and longitude points with the density data in m I believe I need to scale the data based on GRATSIZE a variable in meshgrat
.
NOTE: meshm is part of the Matlab Mapping Toolbox
NOTE NOTE: This is a follow-up question to Determine distance from coastline in Matlab