Explores generation of samples from a single variable probability distribution.
Aktualisiert 17. Jan 2023

Lizenz anzeigen

Monte Carlo methods use random sampling to simulate processes of a probabilistic nature and to solve numerical problems approximately. An example application might be the simulation of fluctuations in the positions of detected photons suffering diffraction. These methods rely heavily upon pseudo-random numbers generated by nonlinear computer algorithms and distributed uniformly or normally over a range.
This script explores the generation of samples of a random variable described by an arbitrary probability density function (pdf) and may interest students and teachers of physics and engineering. 'Try this' suggestions are included.

Zitieren als

Duncan Carlsmith (2024). SampleArbitraryProbabilityDistributionExplorer (, MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2022b
Kompatibel mit allen Versionen
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!


Version Veröffentlicht Versionshinweise

Added related project.