Site logo MA251: Calculus I
Fall 2007
MA251
Readings
Problems
Matlab
To draw a lollipop type the following in Matlab

>>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 :)