Practical Monte Carlo Simulation Tool

Monte Carlo Simulation for generic Matlab commands
Updated 1 Apr 2007

No License

This practical function provides a tool for quickly including a random process within a Monte Carlo Simulation framework.

The main input argument, is a string containing commands in Matlab syntax. Each execution of such string is an instance of a random process. The function expressionMCS
samples an opened number of user-specified variables and expressions, by running the input string for N iterations.

The function help is documented with four meaningful examples of various uses.

The purpose of this function is to perform simple Monte Carlo testings for any kind of stochastic processes, without having to create a single .m file. Hence it is not ment to be practicle, rather than fast. I would like to acknowledge Dimitri Shvorob for his comments.

Cite As

Gianluca Dorini (2024). Practical Monte Carlo Simulation Tool (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Dialog Boxes 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

further description following Dimitri Shvorob comments