figure
hold on
% Five random colors and x and y positions and radii
colors={'r','g','y','m','c'};
xpos = [20 50 90 130 175];
ypos = [10 80 24 75 0];
r = [20 25 30 35 24];

for j=1:5
    drawBubble(r(j),xpos(j),ypos(j),colors{j});
    text(xpos(j),ypos(j),'CS112','Color',[0 0 1],'FontSize',15,...
    'FontWeight','normal','HorizontalAlignment','center')
end
axis equal
axis square off

hold off


Where drawBubble looks like this:



function h = drawBubble(rad,xc,yc,c)
% draw a circle in a given radius, xcenter, ycenter and color
angles = linspace(0,2*pi,40);
bubx = xc+(rad*cos(angles));
buby = yc+(rad*sin(angles));
fill(bubx,buby,c);
axis square off