PATCH draw_ball. , , 8xN, 8 , .
, :
function pH = drawBall(x,y)
%
nSectors = size(x,1);
%
ballColors = jet(nSectors);
%
set(gca,'nextPlot','add')
%
pH = zeros(nSectors,1);
%
x = [x,zeros(nSectors,1)];
y = [y,zeros(nSectors,1)];
%
for s = 1:nSectors
%
pH(s) = patch(x(s,:),y(s,:),ballColors(s,:),'EdgeColor','k');
end