image thumbnail


version (1.15 KB) by Praveen Ranganath
This code computes approximate value of Pi


Updated 26 Aug 2014

View License

This code computes the approximate value of Pi using Monte-Carlo simulations that depends on the number of iterations and the number of points chosen.
The radius is a variable and calculated from the origin.

Cite As

Praveen Ranganath (2021). Pi (, 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!