Skip to content

Commit

Permalink
MainScript.m
Browse files Browse the repository at this point in the history
hej
  • Loading branch information
JonathanGundorph committed Nov 17, 2016
1 parent e15e941 commit 24444dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions MainScript.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@


%% error message for when you try to run some of the functions without loading system.
if sId == -1 && (choice == 3)
if sId == -1 && (choice == 2)
disp('Please choose a type of Lindenmeyer system first: ');
roadblock= imread('roadblock.jpg');
roadblock= imread('gandalf.jpg');
image(roadblock);
else

Expand All @@ -26,11 +26,15 @@

%Sub system menu
if sId == 1
System = 'koch'
disp('You have chosen the Koch curve!')
iterations = input('Please enter amount of iterations: ')
N = input('Please enter amount of iterations: ')
LindenMayerString=LindIter(System,N)
elseif sId == 2
System = 'sierpinski'
disp('You have chosen the Sierpinski triangle!')
iterations = input('Please enter amount of iterations: ')
N = input('Please enter amount of iterations: ')
LindenMayerString=LindIter(System,N)
end

if sId == -1
Expand Down
Binary file added gandalf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 24444dc

Please sign in to comment.