Practical Monte Carlo Simulation Tool

Monte Carlo Simulation for generic Matlab commands

You are now following this Submission

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 (2026). Practical Monte Carlo Simulation Tool (https://www.mathworks.com/matlabcentral/fileexchange/14436-practical-monte-carlo-simulation-tool), MATLAB Central File Exchange. Retrieved .

Categories

Find more on App Building in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

further description following Dimitri Shvorob comments