The Chaos Game

版本 1.0.0.1 (256.0 KB) 作者: David Garrison
Play the Chaos Game to generate interesting shapes using a semi-random process
1.6K 次下载
更新时间 2016/9/1

查看许可证

编者注: 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

引用格式

David Garrison (2024). The Chaos Game (https://www.mathworks.com/matlabcentral/fileexchange/55508-the-chaos-game), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Just for fun 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.1

Updated license

1.0.0.0

New thumbnail