Home /
Expert Answers /
Computer Science /
please-include-explanations-nbsp-broken-crayon-in-two-places-write-a-well-documented-matlab-program-pa765
(Solved): Please include explanations Broken Crayon in Two Places Write a well-documented MATLAB program ...
Please include explanations
Broken Crayon in Two Places Write a well-documented MATLAB program, hmwk10Q1.m, to simulate breaking a one-inch crayoo into two places. Repeat the experiment 10,000 times and determine the average size of the smallest, middle-size, and the largest pieces. Record the estimate of the average sizes as a comment in your program. Develop a function crayonBreaki) that simulates the experiment of breaking a one inch crayon, randomly, in two places. Haye the function return three values corresponding to the smallest, middle-size and largest pieces - FOR A SINGLE TRIAL. Haye the pregham hmwk10Q1.m compute the average sizes using 10,000 trials. Grading: 10 Points for hmwk10Q1,m, 10 Points for crayonBreak, \( m \), and 30 Points for the convect averagolsizes (3 sizes at 10 points each) recorded as a comment in your program.