Help modifying code for new assignment

I have a matlab script that I am supposed to modify for a different assignment. I believe the idea of the assignment is to run a random simulation many times to see which option in the assignment is the best choice. I have attached the m-file that needs to be adjusted and an image of the assignment. The entire m-file that needs to be modified is commented out nicely and explains everything in the code.

 采纳的回答

Looks like he wants you to solve it numericaly via a Monte Carlo experiment. Start modifying by renaming things, like n_games = numberOfTests, and score_p = score1 (the score for the first option of 2 tests), etc. Once you start renaming things, perhaps the path forward will become more clear.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Monte-Carlo 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by