% triangle composition - using recursion. % h=figure; set(gcf,'DefaultTextColor','red'); v=get(h); % The axis of the graph. c=[-100 100 100 -100 -100]; %square's corners. d=[-100 -100 100 100 -100]; plot(c,d, 'g-'); %g -for green % - for line title('Transform: rotation'); len=100; angle_rad=0; %square_transform(len,angle_rad); n=10; % The number of squares. for(i=1:n) angle_rad=i*360/n*pi/180; % degrees to radians. square_transform(len,angle_rad); end