Star pattern using recursion (HELP)

I've been asked to write a code in a drawing software (very basic, commands like forward, turn, repeat, subtasks etc. ) in order for it to draw this pattern using recursion (see image file). However, I have no idea how to do this. Could someone help me out/give me a solution?

2 Kommentare

Geoff Hayes
Geoff Hayes am 4 Jul. 2018
Gijs - what have you tried so far? Presumably your professor has given you some idea of where to start.
Gijs van der Velden
Gijs van der Velden am 4 Jul. 2018
not at all, unfortunately, just had to figure out myself :( thanks for the response !

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Fractals finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by