How to write a code for Monte Carlo Simulation

I want to start writing a code in Matlab in order to perform a Monte-Carlo simulation of normal stress failures based on varying nominal cross-sections and material properties. The code is based on Monte Carlo Simulation. The material is 6061 Aluminum with a rectangular cross section. The dimentions of the aluminum is L=5in, W=2in, H=1in
Write an algorithm to run a Monte-Carlo simulation of failure load of the chosen material and cross-section. The ultimate stress and cross-sectional area should be allowed to randomly vary in accordance with the concept of the Monte-Carlo simulation. Do not use any “canned” Monte Carlo type commands; the algorithm must be clearly written. Plot a histogram of the range of possible failure loads based on the randomly varying crosssectional areas and randomly varying range of ultimate stress

Answers (1)

This looks like a homework problem. If you have any questions ask your instructor or read the link below to get started:
Obviously we can't give you the full solution because you're not allowed to turn in our code as your own.
You can look at other monte carlo posts here:

Categories

Find more on Programming in Help Center and File Exchange

Products

Release

R2022b

Asked:

on 18 Nov 2022

Answered:

on 18 Nov 2022

Community Treasure Hunt

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

Start Hunting!