Write a MATLAB program to generate a Bernoulli process X[n] for which each time instant of the process is a Bernoulli random variable with Pr(X[n]=1) = 0.1 and Pr(X[n]=0) = 0.9 Also, the process is IID (i.e., X[n] is independent of X[m] For all
Once you have created the program to simulate X[n] then create a counting process Y[n] which counts the number of occurrences of X[m] = 1 in the interval Plot member functions of each of the two processes.