Build a MATLAB simulation of 50 trials of the experiment of Example 2.3. Your output should be

Question:

Build a MATLAB simulation of 50 trials of the experiment of Example 2.3. Your output should be a pair of 50 × 1 vectors C and H. For the ith trial, Hi will record whether it was heads (Hi = 1) or tails (Hi = 0), and Ci ∈ {1,2} will record which coin was picked.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: