% Generates Figure 10.2 (interactive mode) a = sqrt(3); b = 1; while 1 figure(1) hold off h=1e-2; plot([-a a],[b,b],'k-','LineWidth',2); hold on; plot([-a a],[-b,-b],'k-','LineWidth',2); plot([a,a],[-b b],'k-','LineWidth',2); plot([-a,-a],[-b b],'k-','LineWidth',2); axis equal; axis tight; axis([-a-h,a+h,-b-h,b+h]); axis off; plot(0,0,'k.','MarkerSize',16); theta = linspace(0,2*pi,100); plot(b*cos(theta),b*sin(theta),'k:','LineWidth',1); S = rand('state'); % save goodseed S; cl = 'b-g-c-'; cd = 'b.g.c.'; cdd = 'b:g:c:'; for k=1:3 x=0; y=0; flag = 0; while abs(x)