axisLim=5;
figure
hold on
for p = 1:9;
x = MwCoords(p,1);
y = MwCoords(p,2);
patch([x,x,x-1,x-1],[y-2,y-3,y-3,y-2],[0,0,0,0], MwC(p,:))
end
for p = 1:9;
x = MyCoords(p,1);
y = MyCoords(p,2);
patch([x,x,x-1,x-1],[y-2,y-3,y-3,y-2],[3,3,3,3], MyC(p,:))
end
for p = 1:9;
y = MoCoords(p,1);
z = MoCoords(p,2);
patch([0,0,0,0],[y-3,y-3,y-2,y-2],[z,z,z,z], MoC(p,:))
end
for p = 1:9;
y = MrCoords(p,1);
z = MrCoords(p,2);
patch([3,3,3,3],[y-3,y-3,y-2,y-2],[z,z,z,z], MrC(p,:))
end
for p = 1:9;
x = MbCoords(p,1);
y = MbCoords(p,2);
patch([x-1,x-1,x,x],[-2,-2,-2,-2],[y,y,y,y], MbC(p,:))
end
for p = 1:9;
x = MgCoords(p,1);
y = MgCoords(p,2);
patch([x-1,x-1,x,x],[1,1,1,1],[y,y,y,y], MgC(p,:))
end
hold off