% File: E7_024.M

clear;

% x is Eo/No in dB
x = -1:0.5:15;

% Generating Pu(x)

Pu = zeros(length(x),1);


for (i = 1:1:length(x))
  Pu(i) = sqrt(10^(x(i)/10));
 
end;

Pu = q(Pu);


fprintf('\nSee Window for plot.\n');

% Plotting results
semilogy(x,Pu);
xlabel('EbNodB');
title('BER for Unipolar Signaling');
%axis;




