
x=0:255;
bx=dec2base(x,2);
M=zeros(256,8);

B = M+bx-48;
lambda = sum(B')/8;

figure(1);
clf

set(gca,'FontSize',15);
plot(x,lambda)
xlabel('ECA #');
ylabel('\lambda');
axis tight
