The drunkard's walk is a commonly-used metaphor to explain the behavior of many natural events, the stock market, and more. This script plots a number (steps) of randomly-directed steps of a given length, to show that after a large number of steps the drunkard tends to remain in vicinity of the lamp post.
引用格式
Bud Kelly (2024). The Drunkard's Walk (https://www.mathworks.com/matlabcentral/fileexchange/66922-the-drunkard-s-walk), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2018a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions > Exploration and Visualization >
在 Help Center 和 MATLAB Answers 中查找有关 Exploration and Visualization 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |