% Script drawTreeGraphics
% Asks user to draw a branch and recursively forms a tree

% Choose number of points in branch
n = 6;

% Choose how many levels of recursion
level = 5;

% Choose color
color = 'r';

% You can select other values for n, level, and color above.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% DO NOT MODIFY THE CODE BELOW %%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
close all

[x, y, C] = drawBranch(n);

figure
axis equal off
hold on

drawTree(0, 0, x, y, C, color, level);
shg
print('-djpeg','myTree')