From: Ulrika <ujohansson@gmail.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: Function for Kochs snowflake
Message-ID: <ef4a06b.6@webcrossing.raydaftYaTP>
Date: Thu, 4 Jan 2007 18:13:20 -0500
References: <ef4a06b.-1@webcrossing.raydaftYaTP>
Lines: 39
NNTP-Posting-Host: 82.183.138.198
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:386074



Maarten - the hint about the ; was vey useful.
Dank U
/Ulrika

Maarten van Reeuwijk wrote:
>
>
> Ulrika wrote:
>
>> YEEES
>> I´ve got it!
>>
>> % insert the Koch generator here
>> angle1(4*j-3:4*j) = [angle(j), pi/3, -2*pi/3, pi/3];
>
> Yep that is it!
>
>> Now is the diffucult part left. Try to understand what the
> diffrent
>> parts of the code does.
>
> It is not so difficult. All you have to do is make some sketches of
> the data
> representations at different levels and an elementary
> trigonometrical
> calculation to calculate the next point.
>
> Hint: by removing the semicolons at the end you can see how the
> algorithm
> works.
>
> Good luck, Maarten
>
> --
> ===================================================================
> Maarten van Reeuwijk dept. of Multiscale Physics
> Phd student Faculty of Applied Sciences
> maarten.vanreeuwijk.net Delft University of Technology
>