Code covered by the BSD License  

Highlights from
Optical Communication systems (SoftTDM 2012a)

image thumbnail

Optical Communication systems (SoftTDM 2012a)

by

 

Upgrade and improvement of optical communications blocksets.

Circuito_Decision(u)
function y = Circuito_Decision(u)

%==============================================
% Punto de decision
% Id = I(0)+I(1)/2
Id=(max(u(:,:))+min(u(:,:)))/2;
%---------------------------------------------
[a b]=size(u);
j=1;
r=zeros(1,b);
y=zeros(1,b);
while j<=b
        if u(1,j)<Id
           r(1,j) = 0;
        else
           r(1,j) = 1;
        end
        j=j+1;
end
y=r;
end

Contact us