% % triangle.m Demonstrating the loop and % graphics interaction % h=figure; set(gcf,'DefaultTextColor','red'); v=get(h); c=[0 100 100 0 0]; d=[0 0 100 100 0]; plot(c,d, 'g-'); title('First loop test'); % a0=10; b0=10; len0=80; % length delta=8; n=5; triangles(a0,b0,len0,delta,n);