The Chaos Game

Play the Chaos Game to generate interesting shapes using a semi-random process
1,5K téléchargements
Mise à jour 1 sept. 2016

Afficher la licence

Note de l’éditeur : This file was selected as MATLAB Central Pick of the Week

The Chaos Game is a mathematical method used to create a sequence of points iteratively using a simple set of rules. In the Chaos game we start with a random point, use the rules to generate each successive point, then plot the resulting set of points.
Here are the rules of the game:
* Define 3 vertices in the x-y plane that define an equilateral triangle
* Start with a random initial point .
* At each step, select one of the 3 vertices at random
* Determine the next point by moving halfway from the selected vertex to the current point
* Plot the next point

Citation pour cette source

David Garrison (2024). The Chaos Game (https://www.mathworks.com/matlabcentral/fileexchange/55508-the-chaos-game), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2016a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Just for fun dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.1

Updated license

1.0.0.0

New thumbnail