I have a data 420*940*6 (the value of each grid varies from 0-100) and I want to plot data only inside polygon (s). lat (420*1) and lon1(940*1).
we can plot this signle page data in this way
S = shaperead(polygon);
N = length(S);
[X,Y] = meshgrid(lon1,lat1);
for k = 1:N
idx = insidepoly(X(:),Y(:),S(k).X,S(k).Y);
plot(X(idx), Y(idx), 'r*')
How we can plot all pages (6) together according to values (0-100) as the attached figure?
Guide me in this regard.