Bean Machine

Version 1.0.0.0 (1.8 KB) by Michael
Bean Machine Simulation (a.k.a. Plinko or binomial distribution)
437 Downloads
Updated 3 Aug 2011

View License

Also known as Plinko, this script simulates balls bouncing left and right, with equal probability, as they travel downwards. At the bottom, they are collected into bins with the bar chart illustrating the number of balls in a particular bin.

This is a fun example of the binomial distribution, which can clearly be seen forming in the bar chart.

Cite As

Michael (2024). Bean Machine (https://www.mathworks.com/matlabcentral/fileexchange/32420-bean-machine), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Bar Plots in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0