MATLAB: Monte Carlo Simulation: x^2

monte carlo

I need to verify the integral of x^2 with x=[0,1], using a Monte Carlo Simulation. Could someone help me out?

Best Answer

https://www.mathworks.com/matlabcentral/fileexchange/8068-montecarlo/content/montec.m
Best wishes
Torsten.
Related Question