Drawing a lollipop in Matlab
The following code will produce a lollipop
x = linspace(0,2*pi); plot(cos(x),sin(x),'r') hold on plot(2.*cos(x),2.*sin(x),'r') plot(3.*cos(x),3.*sin(x),'r') plot(4.*cos(x),4.*sin(x),'r') plot(5.*cos(x),5.*sin(x),'r') plot([0 0], [-5, -20],'g') axis equal

Type them one at a time. Can you figure out what each line does? Now you can try and experiment making your own pictures :)