Monte Carlo Method

Version (86.4 KB) by KSSV
Calculating pi using Monte Carlo Method
Updated 31 Oct 2011

View License

Monte Carlo Method is often useful for solving problems in physics and mathematics where analytical methods are tough to apply. These methods use random numbers and uses the theory of probability to solve the problem. This method can be understood by solving small problems. This code demonstrates such an simple problem; calculation of pi using Monte Carlo Method.

Cite As

KSSV (2024). Monte Carlo Method (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

Monte Carlo/

Version Published Release Notes