close all; clear all;

% ECS315 Example 6.58
% ECS452 Example 3.65
C = [0 0 0 0 0; 1 1 1 1 1]; % repetition code

syms p; 
PE = PE_minDist(C,p)

pp = linspace(0,0.5,100);
PE = subs(PE,p,pp);

plot(pp,PE,'LineWidth',1.5)
xlabel('p')
ylabel('P(E)')
grid on



