I am creating a heatmap in Matlab. For each Sewershed, there is a median income. It is in the shapefile. When I produce the Sewershape in Matlab, I get this...
The command bar reads:
17×1 struct array with fields:
This is my code:
S = shaperead('Sewershed.shp')
meanValue = mean(S(i).BoundingBox);
So, I need the median income for each sewershed to have a color scale, where the largest income is darker red and the smaller incomes become lighter... (red or any color... but darker for higher income and lighter for lower income).
Please, let me know if you can help.