<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/138798</link>
    <title>MATLAB Central Newsreader - Function for Kochs snowflake</title>
    <description>Feed for thread: Function for Kochs snowflake</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 02 Jan 2007 15:33:02 -0500</pubDate>
      <title>Function for Kochs snowflake</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/138798#349610</link>
      <author>Beginner</author>
      <description>Hi,&lt;br&gt;
I'm new on using Matlab and I could need some help.&lt;br&gt;
I want to create a picture of Kochs snowflake but I don&#180;t know how.&lt;br&gt;
Unforturnatly I dont even got a clue where to begin.&lt;br&gt;
Can somebody help me&lt;br&gt;
If you got time I&#180;d be grateful for stepbystep instructions&lt;br&gt;
&lt;br&gt;
Greetings</description>
    </item>
    <item>
      <pubDate>Tue, 02 Jan 2007 16:33:34 -0500</pubDate>
      <title>Re: Function for Kochs snowflake</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/138798#349625</link>
      <author>Ken Davis</author>
      <description>&quot;Beginner&quot; &amp;lt;partypingla@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:ef4a06b.-1@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; I'm new on using Matlab and I could need some help.&lt;br&gt;
&amp;gt; I want to create a picture of Kochs snowflake but I don&#180;t know how.&lt;br&gt;
&amp;gt; Unforturnatly I dont even got a clue where to begin.&lt;br&gt;
&amp;gt; Can somebody help me&lt;br&gt;
&amp;gt; If you got time I&#180;d be grateful for stepbystep instructions&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Greetings&lt;br&gt;
&lt;br&gt;
The MATLAB documentation has a part called Getting Started. I recommend that &lt;br&gt;
you start there. </description>
    </item>
    <item>
      <pubDate>Tue, 02 Jan 2007 17:13:19 -0500</pubDate>
      <title>Re: Function for Kochs snowflake</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/138798#349630</link>
      <author>Beginner</author>
      <description>Ken - that would be the best solution but I don&#180;t have much time so&lt;br&gt;
I&#180;d hope somebody could guide me.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;Ken Davis wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;Beginner&quot; &amp;lt;partypingla@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; news:ef4a06b.-1@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt;&amp;gt; Hi,&lt;br&gt;
&amp;gt;&amp;gt; I'm new on using Matlab and I could need some help.&lt;br&gt;
&amp;gt;&amp;gt; I want to create a picture of Kochs snowflake but I don&#180;t know&lt;br&gt;
&amp;gt; how.&lt;br&gt;
&amp;gt;&amp;gt; Unforturnatly I dont even got a clue where to begin.&lt;br&gt;
&amp;gt;&amp;gt; Can somebody help me&lt;br&gt;
&amp;gt;&amp;gt; If you got time I&#180;d be grateful for stepbystep instructions&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Greetings&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The MATLAB documentation has a part called Getting Started. I&lt;br&gt;
&amp;gt; recommend that&lt;br&gt;
&amp;gt; you start there.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;</description>
    </item>
    <item>
      <pubDate>Wed, 03 Jan 2007 02:30:51 -0500</pubDate>
      <title>Re: Function for Kochs snowflake</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/138798#349644</link>
      <author>Maarten van Reeuwijk</author>
      <description>&amp;gt; Ken - that would be the best solution but I don&#180;t have much time so&lt;br&gt;
&amp;gt; I&#180;d hope somebody could guide me.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;  Ken Davis wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &quot;Beginner&quot; &amp;lt;partypingla@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt;&amp;gt; news:ef4a06b.-1@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Hi,&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; I'm new on using Matlab and I could need some help.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; I want to create a picture of Kochs snowflake but I don&#180;t know&lt;br&gt;
&amp;gt;&amp;gt; how.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Unforturnatly I dont even got a clue where to begin.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Can somebody help me&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; If you got time I&#180;d be grateful for stepbystep instructions&lt;br&gt;
&lt;br&gt;
Okay Beginner, I will give you a start.&lt;br&gt;
&lt;br&gt;
As you know, the Koch snowflake starts from a triangle. We will parameterize&lt;br&gt;
this by a relative angle variable and a unit length l:&lt;br&gt;
&lt;br&gt;
angle = [0, -2/3*pi, -2/3*pi];&lt;br&gt;
l = 1;&lt;br&gt;
&lt;br&gt;
which can be visualized as follows:&lt;br&gt;
&lt;br&gt;
x = zeros([length(angle)+1, 1]);&lt;br&gt;
y = zeros([length(angle)+1, 1]);&lt;br&gt;
&lt;br&gt;
x(1) = 0; y(1) = 0; &lt;br&gt;
phi=0;&lt;br&gt;
for i=1:length(angle);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;phi = phi+angle(i);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x(i+1) = x(i) + l * cos(phi);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y(i+1) = y(i) + l * sin(phi);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
plot(x,y);&lt;br&gt;
axis tight equal;&lt;br&gt;
&lt;br&gt;
This displays the basic shape. The thing you need to realize now is that the&lt;br&gt;
generator for the Koch snowflake in terms of the relative angle is &lt;br&gt;
&lt;br&gt;
phi -&amp;gt; [phi, pi/3,-2*pi/3, pi/3] for each phi in angle;&lt;br&gt;
l -&amp;gt; l /3;&lt;br&gt;
&lt;br&gt;
That is, at each refinement of the curve, the angle array increases by a&lt;br&gt;
factor 4 and the length parameter l shrinks by a factor 3.&lt;br&gt;
&lt;br&gt;
Here is the entire code (iters is the number of times you would like to&lt;br&gt;
refine the shape - do not set iters very high as the length of angle goes&lt;br&gt;
as 4^iters !!!!):&lt;br&gt;
&lt;br&gt;
angle = [0, -2/3*pi, -2/3*pi];&lt;br&gt;
l = 1;&lt;br&gt;
iters=0;&lt;br&gt;
&lt;br&gt;
for i=1:iters&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;l = l/3;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;angle1 = zeros([4*length(angle),1]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for j=1:length(angle)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;% insert the Koch generator here&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;angle = angle1;&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
x = zeros([length(angle)+1, 1]);&lt;br&gt;
y = zeros([length(angle)+1, 1]);&lt;br&gt;
&lt;br&gt;
x(1) = 0; y(1) = 0; &lt;br&gt;
phi=0;&lt;br&gt;
for i=1:length(angle);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;phi = phi+angle(i);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x(i+1) = x(i) + l * cos(phi);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y(i+1) = y(i) + l * sin(phi);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
plot(x,y);&lt;br&gt;
axis tight equal;&lt;br&gt;
&lt;br&gt;
You only need to add one line of code to make it work! Good luck,&lt;br&gt;
&lt;br&gt;
Maarten&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
===================================================================&lt;br&gt;
Maarten van Reeuwijk                    dept. of Multiscale Physics&lt;br&gt;
Phd student                             Faculty of Applied Sciences&lt;br&gt;
maarten.vanreeuwijk.net              Delft University of Technology</description>
    </item>
    <item>
      <pubDate>Wed, 03 Jan 2007 03:43:45 -0500</pubDate>
      <title>Re: Function for Kochs snowflake</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/138798#349661</link>
      <author>Beginner</author>
      <description>Maarten . Dank u!&lt;br&gt;
I really appriciate your help.&lt;br&gt;
/Ulrika&lt;br&gt;
&lt;br&gt;
Okay Beginner, I will give you a start.&lt;br&gt;
&lt;br&gt;
As you know, the Koch snowflake starts from a triangle. We will&lt;br&gt;
parameterize&lt;br&gt;
this by a relative angle variable and a unit length l:&lt;br&gt;
&lt;br&gt;
angle = [0, -2/3*pi, -2/3*pi];&lt;br&gt;
l = 1;&lt;br&gt;
&lt;br&gt;
which can be visualized as follows:&lt;br&gt;
&lt;br&gt;
x = zeros([length(angle)+1, 1]);&lt;br&gt;
y = zeros([length(angle)+1, 1]);&lt;br&gt;
&lt;br&gt;
x(1) = 0; y(1) = 0;&lt;br&gt;
phi=0;&lt;br&gt;
for i=1:length(angle);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;phi = phi+angle(i);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x(i+1) = x(i) + l * cos(phi);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y(i+1) = y(i) + l * sin(phi);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
plot(x,y);&lt;br&gt;
axis tight equal;&lt;br&gt;
&lt;br&gt;
This displays the basic shape. The thing you need to realize now is&lt;br&gt;
that the&lt;br&gt;
generator for the Koch snowflake in terms of the relative angle is&lt;br&gt;
&lt;br&gt;
phi -&amp;gt; [phi, pi/3,-2*pi/3, pi/3] for each phi in angle;&lt;br&gt;
l -&amp;gt; l /3;&lt;br&gt;
&lt;br&gt;
That is, at each refinement of the curve, the angle array increases&lt;br&gt;
by a&lt;br&gt;
factor 4 and the length parameter l shrinks by a factor 3.&lt;br&gt;
&lt;br&gt;
Here is the entire code (iters is the number of times you would like&lt;br&gt;
to&lt;br&gt;
refine the shape - do not set iters very high as the length of angle&lt;br&gt;
goes&lt;br&gt;
as 4^iters !!!!):&lt;br&gt;
&lt;br&gt;
angle = [0, -2/3*pi, -2/3*pi];&lt;br&gt;
l = 1;&lt;br&gt;
iters=0;&lt;br&gt;
&lt;br&gt;
for i=1:iters&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;l = l/3;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;angle1 = zeros([4*length(angle),1]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for j=1:length(angle)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;% insert the Koch generator here&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;angle = angle1;&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
x = zeros([length(angle)+1, 1]);&lt;br&gt;
y = zeros([length(angle)+1, 1]);&lt;br&gt;
&lt;br&gt;
x(1) = 0; y(1) = 0;&lt;br&gt;
phi=0;&lt;br&gt;
for i=1:length(angle);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;phi = phi+angle(i);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x(i+1) = x(i) + l * cos(phi);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y(i+1) = y(i) + l * sin(phi);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
plot(x,y);&lt;br&gt;
axis tight equal;&lt;br&gt;
&lt;br&gt;
You only need to add one line of code to make it work! Good luck,&lt;br&gt;
&lt;br&gt;
Maarten&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
===================================================================&lt;br&gt;
Maarten van Reeuwijk dept. of Multiscale Physics&lt;br&gt;
Phd student Faculty of Applied Sciences&lt;br&gt;
maarten.vanreeuwijk.net Delft University of Technology</description>
    </item>
    <item>
      <pubDate>Wed, 03 Jan 2007 08:49:31 -0500</pubDate>
      <title>Re: Function for Kochs snowflake</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/138798#349693</link>
      <author>Ulrika</author>
      <description>YEEES&lt;br&gt;
I&#180;ve got it!&lt;br&gt;
&lt;br&gt;
% insert the Koch generator here&lt;br&gt;
angle1(4*j-3:4*j) = [angle(j), pi/3, -2*pi/3, pi/3];&lt;br&gt;
&lt;br&gt;
Now is the diffucult part left. Try to understand what the diffrent&lt;br&gt;
parts of the code does.&lt;br&gt;
&lt;br&gt;
Maarten did a great job ealier but I need even more help... I need to&lt;br&gt;
undestand the diffrent parts of the code. So if anyone can explain it&lt;br&gt;
in a basic, basic way, you make my day!&lt;br&gt;
/Ulrika&lt;br&gt;
&lt;br&gt;
Beginner wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Maarten . Dank u!&lt;br&gt;
&amp;gt; I really appriciate your help.&lt;br&gt;
&amp;gt; /Ulrika&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Okay Beginner, I will give you a start.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; As you know, the Koch snowflake starts from a triangle. We will&lt;br&gt;
&amp;gt; parameterize&lt;br&gt;
&amp;gt; this by a relative angle variable and a unit length l:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; angle = [0, -2/3*pi, -2/3*pi];&lt;br&gt;
&amp;gt; l = 1;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; which can be visualized as follows:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; x = zeros([length(angle)+1, 1]);&lt;br&gt;
&amp;gt; y = zeros([length(angle)+1, 1]);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; x(1) = 0; y(1) = 0;&lt;br&gt;
&amp;gt; phi=0;&lt;br&gt;
&amp;gt; for i=1:length(angle);&lt;br&gt;
&amp;gt; phi = phi+angle(i);&lt;br&gt;
&amp;gt; x(i+1) = x(i) + l * cos(phi);&lt;br&gt;
&amp;gt; y(i+1) = y(i) + l * sin(phi);&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; plot(x,y);&lt;br&gt;
&amp;gt; axis tight equal;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This displays the basic shape. The thing you need to realize now is&lt;br&gt;
&amp;gt; that the&lt;br&gt;
&amp;gt; generator for the Koch snowflake in terms of the relative angle is&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; phi -&amp;gt; [phi, pi/3,-2*pi/3, pi/3] for each phi in angle;&lt;br&gt;
&amp;gt; l -&amp;gt; l /3;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; That is, at each refinement of the curve, the angle array increases&lt;br&gt;
&amp;gt; by a&lt;br&gt;
&amp;gt; factor 4 and the length parameter l shrinks by a factor 3.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Here is the entire code (iters is the number of times you would&lt;br&gt;
&amp;gt; like&lt;br&gt;
&amp;gt; to&lt;br&gt;
&amp;gt; refine the shape - do not set iters very high as the length of&lt;br&gt;
&amp;gt; angle&lt;br&gt;
&amp;gt; goes&lt;br&gt;
&amp;gt; as 4^iters !!!!):&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; angle = [0, -2/3*pi, -2/3*pi];&lt;br&gt;
&amp;gt; l = 1;&lt;br&gt;
&amp;gt; iters=0;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; for i=1:iters&lt;br&gt;
&amp;gt; l = l/3;&lt;br&gt;
&amp;gt; angle1 = zeros([4*length(angle),1]);&lt;br&gt;
&amp;gt; for j=1:length(angle)&lt;br&gt;
&amp;gt; % insert the Koch generator here&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; angle = angle1;&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; x = zeros([length(angle)+1, 1]);&lt;br&gt;
&amp;gt; y = zeros([length(angle)+1, 1]);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; x(1) = 0; y(1) = 0;&lt;br&gt;
&amp;gt; phi=0;&lt;br&gt;
&amp;gt; for i=1:length(angle);&lt;br&gt;
&amp;gt; phi = phi+angle(i);&lt;br&gt;
&amp;gt; x(i+1) = x(i) + l * cos(phi);&lt;br&gt;
&amp;gt; y(i+1) = y(i) + l * sin(phi);&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; plot(x,y);&lt;br&gt;
&amp;gt; axis tight equal;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You only need to add one line of code to make it work! Good luck,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Maarten&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; ===================================================================&lt;br&gt;
&amp;gt; Maarten van Reeuwijk dept. of Multiscale Physics&lt;br&gt;
&amp;gt; Phd student Faculty of Applied Sciences&lt;br&gt;
&amp;gt; maarten.vanreeuwijk.net Delft University of Technology</description>
    </item>
    <item>
      <pubDate>Thu, 04 Jan 2007 21:04:04 -0500</pubDate>
      <title>Re: Function for Kochs snowflake</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/138798#349886</link>
      <author>Maarten van Reeuwijk</author>
      <description>Ulrika wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; YEEES&lt;br&gt;
&amp;gt; I&#180;ve got it!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % insert the Koch generator here&lt;br&gt;
&amp;gt; angle1(4*j-3:4*j) = [angle(j), pi/3, -2*pi/3, pi/3];&lt;br&gt;
&lt;br&gt;
Yep that is it!&lt;br&gt;
&lt;br&gt;
&amp;gt; Now is the diffucult part left. Try to understand what the diffrent&lt;br&gt;
&amp;gt; parts of the code does.&lt;br&gt;
&lt;br&gt;
It is not so difficult. All you have to do is make some sketches of the data&lt;br&gt;
representations at different levels and an elementary trigonometrical&lt;br&gt;
calculation to calculate the next point.&lt;br&gt;
&lt;br&gt;
Hint: by removing the semicolons at the end you can see how the algorithm&lt;br&gt;
works.&lt;br&gt;
&lt;br&gt;
Good luck, Maarten&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
===================================================================&lt;br&gt;
Maarten van Reeuwijk                    dept. of Multiscale Physics&lt;br&gt;
Phd student                             Faculty of Applied Sciences&lt;br&gt;
maarten.vanreeuwijk.net              Delft University of Technology</description>
    </item>
    <item>
      <pubDate>Thu, 04 Jan 2007 18:13:20 -0500</pubDate>
      <title>Re: Function for Kochs snowflake</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/138798#349911</link>
      <author>Ulrika</author>
      <description>Maarten - the hint about the ; was vey useful.&lt;br&gt;
Dank U&lt;br&gt;
/Ulrika&lt;br&gt;
&lt;br&gt;
Maarten van Reeuwijk wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Ulrika wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; YEEES&lt;br&gt;
&amp;gt;&amp;gt; I&#180;ve got it!&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; % insert the Koch generator here&lt;br&gt;
&amp;gt;&amp;gt; angle1(4*j-3:4*j) = [angle(j), pi/3, -2*pi/3, pi/3];&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Yep that is it!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Now is the diffucult part left. Try to understand what the&lt;br&gt;
&amp;gt; diffrent&lt;br&gt;
&amp;gt;&amp;gt; parts of the code does.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It is not so difficult. All you have to do is make some sketches of&lt;br&gt;
&amp;gt; the data&lt;br&gt;
&amp;gt; representations at different levels and an elementary&lt;br&gt;
&amp;gt; trigonometrical&lt;br&gt;
&amp;gt; calculation to calculate the next point.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hint: by removing the semicolons at the end you can see how the&lt;br&gt;
&amp;gt; algorithm&lt;br&gt;
&amp;gt; works.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Good luck, Maarten&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; ===================================================================&lt;br&gt;
&amp;gt; Maarten van Reeuwijk dept. of Multiscale Physics&lt;br&gt;
&amp;gt; Phd student Faculty of Applied Sciences&lt;br&gt;
&amp;gt; maarten.vanreeuwijk.net Delft University of Technology&lt;br&gt;
&amp;gt;</description>
    </item>
    <item>
      <pubDate>Wed, 16 Apr 2008 07:01:25 -0400</pubDate>
      <title>On another note</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/138798#426895</link>
      <author>Mikkel Guldberg</author>
      <description>Hi Guys&lt;br&gt;
&lt;br&gt;
While we are on the subject i was wondering if anyone could point me to or give me a proof that the perimeter goes towards infinity and the &quot;inside&quot; of the star is finite...&lt;br&gt;
&lt;br&gt;
Thanks in advance&lt;br&gt;
Mikkel</description>
    </item>
  </channel>
</rss>

