The probability of failure of a simply supported beam is estimated by means of MCS. Two computations are performed:
1. Using simple MCS
2. Using parallel computing 'parpool'
Finally, a graph showing the failure probability curves is obtained
Thanks for the info Ryan.
Learning parallel computing in MATLAB is one of the points on my to-do list, I hope to post later an improved code using this advantage.
This is a pretty cool demo. You could utilize parallel computing to speed it up and use more than 10 runs in a reasonable amount of time since Monte Carlo achieves better results with more runs.
The updated program includes a parallel computing implementation using the 'parpool' (matlabpool) command, and also corrects some minor mistakes.