1 / 1

Sierpinski‘s Car Pet Made by Vu Chiem

Sierpinski‘s Car Pet Made by Vu Chiem. The Sierpinski’s Car Pet has a fractal dimension of log(8)/log(3) = 1.8928. It is generated by using a simple recursion formula: Given a square of size s, we divide it into 9 squares of size s/3. We skip the middle square

Download Presentation

Sierpinski‘s Car Pet Made by Vu Chiem

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sierpinski‘s Car PetMade by Vu Chiem • The Sierpinski’s Car Pet has a fractal dimension of log(8)/log(3) = 1.8928. • It is generated by using a simple recursion formula: • Given a square of size s, we divide it into 9 squares of size s/3. • We skip the middle square • Repeat until the square size is small enough • My approach is: • -Create a black N x N square (grayscale value of 1) • -Apply the recursion and “skip the middle square” by making it white (grayscale value of 0). • -Repeat the process. • More information: • -Picked N = 3^7. The grid size has 3^7^2 = 4782969 elements. • Any values lower than 3^7 affect the resolution. Any higher values take too long. • -Had to declare the grid as ones(N,N, ‘uint8’) to save memory or Matlab will complain. Prepared for UC Berkeley course EPS 109 “Computer Simulations in Earth and Planetary Science”, fall 2009, Instructor: B. Militzer

More Related