Use MATLAB to write a program to simulate coin tosses Probab
Use MATLAB to write a program to simulate coin tosses. Probability of heads in a coin toss experiment is p where p is equal to 0.2777.
Generate a figure which plots the frequency of heads finin ncoin tossing where fis shown on y axis and nis on x-axis. Frequency of heads fin)is computed as the number of heads observed within ntrials divided by n. See the example below. 0.8 0.6 E 0.4 0.2 \"n 10 20 30 40 50 60 70 80 90 100 Coin Toss Number Figure: https://www.probabilitycourse.com/chapter12/chapter12.phpSolution
Solution :- MATLAB program to simulate coin toss.
100 tosses with p=0.2777

